Creating a CMP Entity Bean Under EJB 2.0

Although container-managed persistence in EJB 1.1 provided a good starting point for developers, it leaves a lot of things up to the container providers. This omission gives the container providers a lot of flexibility; however, it also means that the container providers can skimp on some of the features.

When you move an EJB 1.1 CMP bean from one application server platform to another, you must go through the pain of mapping the bean to the database all over again because each vendor does it differently. Queries can be especially painful because of the variety in query languages. EJB 2.0 addresses some of these problems by creating a standard query language (EJBQL). It also changes the format of the implementation ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.