CMP Entity Bean Example

Instead of writing cumbersome JDBC code, the CMP bean writer provides only the business logic and deployment descriptors. CMP can offer the developer faster development time and better performance than BMP entity beans. The CMP entity bean class is abstract. This enables the EJB container to implement persistence logic by generating a class that extends the bean class.


This section covers the EJB 2.0 CMP model. At the time of publication, the EJB 2.0 specification is not yet final. Please consult the EJB 2.0 specification and the WebLogic Server documentation for information about late changes in the specification.

Container-Managed Fields

Every container-managed entity bean has a set of container-managed fields, ...

Get J2EE™ Applications and BEA™ WebLogic Server™ 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.