It's not a secret anymore!
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
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?
I agree. Here's the link:
subject: session bean and CMP
It's not a secret anymore!