O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required