File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes How can we decide BMT and CMT? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "How can we decide BMT and CMT?" Watch "How can we decide BMT and CMT?" New topic

How can we decide BMT and CMT?

Bingo Zhao

Joined: Apr 23, 2002
Posts: 12
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

Joined: Jul 18, 2001
Posts: 2712
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

Joined: Aug 23, 2006
Posts: 41

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.

I agree. Here's the link:
subject: How can we decide BMT and CMT?
It's not a secret anymore!