6.3. Stateful session EJBs

6.3.1. Overview of operation

Stateful session EJB implementation instances are never pooled; they are instantiated on demand when the client calls create() on the EJB’s (remote or local) home interface, and removed when the client calls remove(). The interaction between the client, container, and implementation instance is shown in simplified form in Figure 6.1 (it is simplified in that the diagram does not show passivation, timeout, or the synchronization during a transaction. These issues are discussed later). The purpose of each of the steps in Figure 6.1 is explained below. Note that the exact ordering may not be maintained by a particular product. The EJB Specification sets out where flexibility is allowed and ...

Get Applied Enterprise JavaBeans™ Technology 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.