aspose 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
wood burning stoves
 
subject: What is the scope of the transaction if method is bean managed and container managed?