Loading
CMT VS BMT beans

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  CMT VS BMT beans ?


Ans)

CTM BTM

Container will take the responsibility of managing the Transactions based on the Transaction Attribute you provided in EJB xml or as an annotation , as shown below.

@TransactionAttribute(value=REQUIRES_NEW)

When you use bean-managed transactions (BMT), the bean-provider is responsible for ensuring that a transaction is started and committed when appropriate.
 

All session and message-driven beans may use CMT.


EJB 2.1 entity beans must use CMT.

EJB 3.0 entities cannot be configured with a transaction management type. EJB 3.0 entities execute within the transactional context of the caller.

Only session and message-driven beans may use BMT.

Entity Beans can’t use BMT.

 



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

CMT VS BMT beans


CMT VS BMT beans

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free