File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "session bean and CMP" Watch "session bean and CMP" New topic
Author

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
Greenhorn

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?
 
wood burning stoves
 
subject: session bean and CMP