Container Managed Persistence—CMP

Container-managed persistence is an entity bean model that moves the task of reading and writing an entity bean's persistent state from the bean developer to the EJB container. An entity bean with container-managed persistence relies on the container to perform data access on behalf of the entity bean. The alternative model is bean-managed persistence (BMP) which requires the bean developer to load and store the bean persistent state through code in the entity bean. CMP entity beans are simpler to develop than bean-managed persistence beans because in CMP beans, the bean author focuses on the business logic aspect of the entity bean, while the EJB container handles the persistence requirements. The bean provider ...

Get JBoss™ Administration and Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.