Forums Register Login

Container Managed or Bean Managed

+Pie Number of slices to send: Send
The BluePrints book say Entity Beans must use CMT (Container Managed Transactions) where as Sessions Beans can use Container Managed or Bean Managed. Is that a rule or just a norm ? Will the EJB Container throw an error during deployment ?
+Pie Number of slices to send: Send
I would like to know too, I must agree these things are pretty confusing.
Thanks
+Pie Number of slices to send: Send
Section 11.6.1 page 177 of EJB Spec 1.1 says :

Note that only Session Beans can be used with bean managed transaction demarcation. A bean provider is not allowed to provide an Entity Bean with bean-managed transaction demarcation.

My question is what was reason behind such a design ? When persistance of Entity bean can be bean-managed why not transaction management be bean-managed ?
What are you doing? You are supposed to be reading this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 827 times.
Similar Threads
BMT inside BMP
CMP versus CMT
Usertransaction and Entity Beans
Container Managed or Bean Managed
persistence in Entity Bean?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:39:57.