File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Some CMT and BMT doubts in EJB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Some CMT and BMT doubts in EJB?" Watch "Some CMT and BMT doubts in EJB?" New topic

Some CMT and BMT doubts in EJB?

scott miles
Ranch Hand

Joined: Jun 16, 2011
Posts: 70
1)With REQUIRES_NEW attribute Container creates a new transaction and the callers transaction is suspended Just get better understanding of REQUIRES_NEW , does it achieve the above behaviour by associating transaction with new connection. Once complete the current transaction it assume the previous connection? when the commit happens for new transaction?

2)Can somebody point me the brief eamxple CMT and BMT where sesion bean using JDBC. Basically looking how we get the connection,commit, rollback in CMT and BMT

3)In CMT, Transaction manager Complete the transaction associated with the current thread. My question here is how does it commit the transaction . I know of commiting the transaction with connection but here how does it the get to know which connection associated with current thread as in one example i saw of creation the connection inside the method with new operator.
I agree. Here's the link:
subject: Some CMT and BMT doubts in EJB?
It's not a secret anymore!