Using EJB 1.1 CMP

CMP as defined by EJB 2.0 offers many improvements over earlier versions so it’s not expected that developers will continue developing new applications based on the EJB 1.1 model. However, it’s also not expected that developers of existing systems will immediately rewrite their CMP entity beans to use the new specification. To handle this situation, the EJB 2.0 Specification requires that a container be backward compatible and continue to support EJB 1.1 CMP.

EJB 1.1 CMP classes differ the most from EJB 2.0 in that they’re concrete classes that must define all the fields that are to be persisted. In this way, they’re a lot like BMP classes. Their implementations of the container callback methods are much more in line with EJB ...

Get Special Edition Using Enterprise JavaBeans™ 2.0 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.