O'Reilly logo

Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications by Paul Anderson, Gail Anderson

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

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

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