EJB 2.0 Development with WebSphere Studio Application Developer
by Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss
Bean-container contract
Understanding what you as a bean developer would have to do to implement a meaningful session bean means understanding the callback and life-cycle methods of the bean, and how this bean-container contract is enforced. As we mentioned, this contract is different depending on the type of session bean: stateful or stateless. This section describes the basic concepts of the bean-container contract, such as instance pooling for stateless session beans, and activation-passivation for stateful session beans. The life cycle of each session bean type is discussed.
For the purposes of this discussion, EJBObject will be used to refer generically to the object that implements the component interface, regardless of whether it is actually ...
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