September 2002
Intermediate to advanced
608 pages
14h 20m
English
There are two options in handling persistence for an entity bean. With bean-managed persistence (BMP), the bean developer is responsible for writing all of the code needed to handle the bean's persistence. This means, for example, that when an ejbCreate() operation is invoked, the bean developer will write the code to do a JDBC table insert (if a JDBC data source is being used), and likewise the code to do a delete operation if the remove() operation is invoked.
With container-managed persistence (CMP), the developer leaves it to the container to handle the persistence of the bean. CMP is thus easier for the developer to write, although the deployment descriptor becomes more complex with ...
Read now
Unlock full access