11.3. Stateless session beans

Now that we have been able to install our EJBs into WebSphere we can explore how they behave at run time.

In this section we show you the behavior of EJB stateless session beans in WebSphere V3.5. In the following sections we examine stateful session beans and entity beans.

Our tests emphasize the fact that we cannot use stateless session beans to maintain client state across calls to multiple business methods.

11.3.1. The life cycle of a stateless session bean

The stateless session bean’s life cycle has two states:

  • The does-not-exist state.

  • The method-ready pool state.

When a bean instance is in the does-not-exist state, this means that it has not yet been instantiated.

When a bean instance is instantiated by the ...

Get WebSphere V3.5 Handbook 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.