wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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?
It is sorta covered in the JavaRanch Style Guide.
subject: session bean and CMP
Similar Threads
Help Me Demistify this
Add and test Custom Finder Methods in WSAD 4.0
TxnRolledbackException instead of RemoteException
ejbStore and DB2 Update triggers
Transaction roll back in session bean