File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can we decide BMT and CMT?

 
Bingo Zhao
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In some scenario mock exam,the correct answers indicate must use BMT or CMT!
But how can we decide BMT or CMT? Maybe BMT do a good control (fine-granularity) than CMT? That's all?
 
Chris Mathews
Ranch Hand
Posts: 2712
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bean Managed Transactions should be reserved for only those cases where Container Managed Transactions do not offer the flexibility necessary. In 90% of all cases CMT will get the job done, is easier, and more maintainable.
 
Pham Huy Anh
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Great topic. Actually, I have a very small exp. on transaction management. So could I have some silly questions:

1. I see sometime, people start transaction in servlet and propagate to EJB. Why?
2. If transaction must be start in web tier, we must use BMT and java code for transaction management, is that right?
3. (my extra optional question ), I think CMT is good enought for FBN?

Anyway, I love CMT for many reason and I will point out in my doc.

THanks,
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic