Win a copy of The Java Performance Companion this week in the Performance forum!
  • 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
  • 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: 611
1
IntelliJ IDE Java Linux
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic