i have a requires transaction attribute for a method on the ejb.
this method calls several java objects which acquire a database connections independently and do some database access.
would the ejb container maintain transaction integrity across all these connections used within the same method?
should i use only one connection per EJB?
I extend this question
For example if i used third party API which has its own transaction and is not using EJB model. How come we will use this third party API and our Entity bean together to ensure we are also achieving ACID in our transaction
Yes, that's why EJB container is also called CMT/component transaction manager.