Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

container managed transactions  RSS feed

 
rahul karwal
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
can anyone pls tell me when we have container managed tranactions and they ease the job of a developer under what circumstances one would be using bean managed transactions and not container managed transactions? can anyone pls give me a practicle example. I am aware that one prb with containter managed transaction is that when it is executing one method it can have a single transaction or none so apart from performance issue will one ever think of using bean managed transaction?
Thank u very much
aziz
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In CMT, the complete method is considered to be in a transaction, where as in BMT parts of the method can be in a transaction.
Reducing the scope of a transaction may lead to an increase in performance.
Secondly in a SFSB BMT, the transaction can be kept open across multiple methods. I can't think of any example at the moment to justify the use of BMT, but for most of the practical J2EE applications, we use CMT.
[ March 11, 2004: Message edited by: Vish Kumar ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!