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.

Note

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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.