• Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction propogation in BMT

 
nzvidk kulkarni
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For a Bean managed transaction demarcation, is this true?

A transaction used by a BMT bean must have been started by the bean.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct. Refer to the EJB 2.0 Spec

Chapter 17 Support for Transactions
17.6 Container Provider responsibilities
17.6.1 Bean-managed transaction demarcation

If a transaction is present the container will suspend it before the BMT bean method is run - regardless whether it will or will not start its own transaction (in fact, the container has no idea what the bean will or will not do).
 
The human mind is a dangerous plaything. This tiny ad is pretty safe:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!