It's not a secret anymore!*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Transactions in BMP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Transactions in BMP" Watch "Transactions in BMP" New topic
Author

Transactions in BMP

Tarun Tyagi
Greenhorn

Joined: Jun 01, 2004
Posts: 9
Hi

I wanted to understand how exactly is the container able to manage transactions in case of a BMP .
In the sample code I've seen at a few places for BMPs , in the ejbLoad or ejStore method , the JDBC conection is closed at the end of the function .

Is it , that all pooled or XA connections obtained from the container via a datasource object , are automatically managed for transactions . ( Its not really clear how this happens , if the connection is closed ...!! or even the connection close is intercepted by the container ? ) .

Also , it probably may never be done , but if the connection is not obtained from the server datasource ( like a simple JDBC connection ) , will the container still be able to manage transactions .

Hope I made clear the point that I am not able to understand .


Thanks
Tarun :roll:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transactions in BMP
 
Similar Threads
What is CMT and BMT?
Stateless EJB and transactions
Difference between direct JDBC connection and connection from weblogic pool
is a method in a class part of a transaction?
Problem in Two-phase Commit