File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Container Managed or Bean Managed

 
Madhu Juneja
Ranch Hand
Posts: 176
  • 0
  • 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 ?
 
C Balajee
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB Model offers a wide variety of ways to use transactional services.Developers have two choices
1) Using programatic transaction (ie Bean Managed)
2) Other Declarative transaction (ie Container Managed)
The Declarative method is recommended as it reduces the code that must be written and offers more flexibilty to the uuser since attributes can be changed at deployment without change in code
Using CMP always helps. And Lot of development tools also support this.
regards
Balajee
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic