File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes What is the scope of the transaction if method is bean managed and container managed? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "What is the scope of the transaction if method is bean managed and container managed?" Watch "What is the scope of the transaction if method is bean managed and container managed?" New topic
Author

What is the scope of the transaction if method is bean managed and container managed?

john appadam
Greenhorn

Joined: Jun 13, 2011
Posts: 5
Can any one please tell
What is the scope of the transaction if method is bean managed and
container-managed?
Piotr Nowicki
Ranch Hand

Joined: Jul 13, 2010
Posts: 610

As far as I know:

BMT - you can explicitely say what are the boundaries of the transaction because you start and commit the transaction by yourself (as a bean provider),
CMT - one method = one transaction.

I think (anyone please correct me if I'm wrong) that you also can span your transaction across multiple method callas if you use SFSB.

Hope that helps.

Cheers!


OCP Java SE 6 Programmer, OCM Java SE 6 Developer, OCE Java EE 6 JSPSD, OCE Java EE 6 EJBD, OCE Java EE 6 JPAD, Spring 3.0 Core Professional.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What is the scope of the transaction if method is bean managed and container managed?
 
Similar Threads
Issues with Oracle connection/statement when accessing through JDBC
Transaction Propagation Question ??
Default transaction Attribute value
Transaction Problem
Difference between container managed entity manager & CMT