11.4. Persistence management
Effective persistence management is the key to efficient use of entity EJBs, but only part of this process is under the control of the developer. Version 1.1 of the EJB Specification defined two persistence schemes: bean-managed and container-managed. Version 2.0 extends this to include a new version of container-managed persistence that supports not only persistent instance variables, but persistent associations between EJBs. I will refer to the old scheme as ‘1.1-style CMP’ and the new one as ‘2.0-style CMP’ in the rest of this chapter.
11.4.1. Fundamental principles
Whatever persistence management strategy we use, the interaction between the container and the instance follows exactly the same pattern, which is ...
Get Applied Enterprise JavaBeans™ Technology 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.