O'Reilly logo

J2EE™ Applications and BEA™ WebLogic Server™ by Sandra L. Emerson, Rob Woollen, Michael Girdley

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

Container-Managed Entity Bean Lifecycle

Entity beans exist in a persistent store until they are deleted by either the entity bean's remove method or by a direct database delete. Therefore, the entity lifecycle must accommodate instances that exist before the EJB server is started and that continue to live after the EJB server is halted.

Entity bean instances exist in two states: anonymous and identity. An anonymous entity bean is similar to a stateless session bean. It has no associated identity: One anonymous instance is as good as any other. An identified bean has an associated primary key that uniquely identifies this instance. Through its lifetime, the entity bean transitions between these states in response to callbacks from the EJB container. ...

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