9.6. Summary

This chapter looked at the EJB component model and its relationship to JDO. Various implementation topics were addressed with extensive source code examples. Higher-level conceptual and architectural issues were also discussed.

In summary, if your application requires distributed and transactional persistent components, use EJB entity beans. In this case, if you are happy with the CMP entity bean implementations that your container provides, JDO is not for you. If you are not, but your design really does require distributed and transactional persistent objects, BMP entity beans implemented using JDO may be the answer. For the rest of us, and that's the vast majority, JDO provides a better alternative over EJB entity beans.

If you ...

Get Core Java™ Data Objects 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.