This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes session bean and CMP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "session bean and CMP" Watch "session bean and CMP" New topic

session bean and CMP

sitaram irrinki
Ranch Hand

Joined: Feb 16, 2005
Posts: 158
what is the difference between stateless session bean& CMP
David McDonagh

Joined: Feb 13, 2004
Posts: 19
From a high level, a CMP is an entity bean, which should really only be used for database transactions i.e. select, update, remove. You most likely would call CMP from other type of beans/Java clients to perform those functions. It is good practice to keep your database transactions away from your application logic.
Stateless Session beans and CMP have different bean lifecycles and different requirements ... do u require a list?
subject: session bean and CMP