Looking Under the Hood of a BMP Entity Bean

Figure 10.1 shows the interactions between the client, EJB container, bean-managed persistence bean, and the database.

Figure 10.1. Under the hood of a bean-managed persistence bean.

The following steps describe the sequence of interactions in detail:

1.
At startup, the EJB container registers all the deployed enterprise beans, including entity beans, with the JNDI service.
2.
The client looks up the home interface of the deployed enterprise bean via the Java Naming and Directory Interface (JNDI). For example, the remote home interface for the Student bean can be located using the following code segment: ...

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.