7.6. Design Guidelines and Patterns

Along with CMP entity beans, we've also introduced entity beans that maintain relationships with other entity beans. With the EJB 2.0 specification, it is possible to implement these relationship fields with container-managed relationships (CMR). Let's review the design elements and patterns that characterize the enterprise application presented in this chapter.

Using CMP

Container-managed persistence adds portability to systems because bean developers do not have to write database access code. Compared to BMP, the amount of bean implementation code shrinks when using CMP. This is largely due to declarative information in the deployment descriptor, which allows the container to generate implementation code. ...

Get Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications 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.