12.6. Summary

Bean-managed persistence requires the developer to code the synchronization of the EJB’s properties and associations with the database. This means extra work for the developer (compared with container-managed persistence), but does allow synchronization with nonstandard data sources. At present (that is, with EJB 1.1-compliant products), many developers achieve better performance with BMP than can be achieved with CMP. It is likely that with increased availability of EJB 2.0 products, this will no longer be possible, and CMP will offer the advantages of convenience and efficiency. Undoubtedly EJB 2.0 shifts the emphasis onto CMP.

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.