EJB 2.0 Development with WebSphere Studio Application Developer
by Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss
Life cycle of an entity bean
We can see that the entity bean begins its life by moving into the instance pool. This could happen, for instance, when the server starts up. At this point, it is an uninitialized bean, and it is waiting to be associated with an EJBObject (bean instance) such that it can service client requests.
There are a lot more interactions that can drive the container calling back other methods on the bean, and these may work in conjunction with the basic life-cycle methods of ejbActivate and ejbPassivate as mentioned above, or independent of them. The remainder of the discussion on life cycle focuses on what actually triggers a bean in moving from the pooled state to the ready state, or what happens when it is in the ready ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access