Looking Under the Hood of a Stateless Session Bean

Figure 5.1 shows the interactions between the client, the EJB container, and the stateless session bean.

Figure 5.1. Under the hood of a stateless session bean.

The following steps describe the sequence of interactions in detail:

1.
At startup, the EJB container registers all the deployed enterprise beans, including stateless session beans, with the Java Naming and Directory Interface (JNDI) service, based on the JNDI name specified in the deployment descriptor.
2.
The EJB container decides to instantiate a stateless session bean based on the caching policy. In this example, the EJB container instantiates ...

Get Sams Teach Yourself EJB in 21 Days 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.