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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access