• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Container Managed or Bean Managed

 
Madhu Juneja
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Walter Vetrivel
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know too, I must agree these things are pretty confusing.
Thanks
 
Madhu Juneja
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic