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 ...
Get EJB 2.0 Development with WebSphere Studio Application Developer 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.