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

6.7. Design Guidelines and Patterns

With the introduction of entity beans, our enterprise application can safely and efficiently model business data that updates a database. Let's review some of the design decisions we've made in implementing our Customer entity bean and associated session facade, CustomerSession EJB.

Using BMP

General wisdom dictates using Container-Managed Persistence (CMP) whenever possible. However, not all entity beans can be implemented with CMP. Bean-managed persistence requires that the bean developer write the database access code for an entity bean. This means writing ejbLoad() and ejbStore() routines to synchronize the database, as well as implementing the ejbFindXXX(), ejbCreate(), and ejbRemove() methods. To minimize ...

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