This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Container Managed or Bean Managed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Container Managed or Bean Managed" Watch "Container Managed or Bean Managed" New topic
Author

Container Managed or Bean Managed

Madhu Juneja
Ranch Hand

Joined: Mar 10, 2001
Posts: 176
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

Joined: Oct 18, 2000
Posts: 25
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Container Managed or Bean Managed
 
Similar Threads
Container Managed or Bean Managed
CMP versus CMT
BMT inside BMP
persistence in Entity Bean?
Usertransaction and Entity Beans