Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
john appadam
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one please tell
What is the scope of the transaction if method is bean managed and
container-managed?
 
Piotr Nowicki
Ranch Hand
Posts: 610
IntelliJ IDE Java Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic