Bean-managed persistence (BMP)

Bean-managed persistence (BMP) enables you to manage the persistence of your bean instead of delegating it to the container. In order to achieve this, you have to write a number of methods that are usually handled by the CMP layer of the container.

This bean has to implement the same interfaces as a CMP entity bean:

  • The bean class has to implement the javax.ejb.EntityBean interface. All callback methods in this interface have to be implemented.

  • The component interface has to extend either the javax.ejb.EJBObject or the javax.ejb.EJBLocalObject, depending on whether it is a local or a remote component interface. In this interface, you will mainly find business methods as well as accessor methods.

  • The home interface ...

Get EJB 2.0 Development with WebSphere Studio Application Developer 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.