O'Reilly logo

Java™ Data Objects by Robin M. Roos

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

11.8. JDO integration with entity beans

Entity beans must employ CMTs, and so they contain no transaction demarcation code.

Entity beans may delegate their persistence to the container. This is known as container-managed persistence (CMP). In such cases the bean no longer contains code to synchronize its attributes with the data store.

JDO as the underlying technology for CMP implementations

Incidentally, an EJB container may utilize JDO internally in support of its CMP implementation. However, that is of architectural significance only and makes no difference to the bean implementation.

The rest of this discussion centers on bean-managed persistence. To implement a BMP entity bean with JDO, the bean should hold a reference to one (or more) ...

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