I understand what Container/Bean Managed Persistence are about, but what are Container/Bean Managed Transactions? According to the Whizz Labs tests, CMP and CMT are different things. Additionally, it seems to suggest that CMT might be necessary even if no data is being persisted. What kind of transaction is required if there is no data persistence??
I will tell in you short what is CMT. When it is CMT all your commits and rollback are taken care of by container or in other words you don't have to explicitly write commit and rollback,in the case of bmt you have to do that. My suggestion you can thru the ejb spec or edroman book for further details Shankar
Actually, there is no almost about it. Entity Beans will always be CMT.
In EJB 1.0, session and entity beans can both be BMT. In EJB 1.1, only session beans can be BMT. In either case only beans set to have BMP can declare BMT. (both persistence and transaction must be declared at the bean level rather than method level) phew! Thanks for the pointers guys. When I first read about it in my EJB book I didn't see the distinction, but it all makes sense now.
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad: