6.4. Stateless session EJBs
6.4.1. Overview of operation
The interactions between client, container, and EJB implementation instance are somewhat different for stateless session EJBs than the interactions we have discussed for stateful session EJBs. This is because the container creates a pool of implementation instances and shares them between clients. Therefore, in the collaboration diagram (Figure 6.2), there are two sets of collaborations. We will begin by considering the interactions that are driven by the client; assume that the pool of instances and EJB objects has already been created. As before, the distinction between local and distributed client views is not important at this stage.
Figure 6.2. Interaction between the client, EJB ...
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.