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

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