Entity Bean Life Cycle

The EJB container determines when Entity bean objects are created and when they're destroyed. Ultimately, however, client requests determine how the data should be manipulated.

Although the in-memory copy of persisted information is destroyed when the virtual machine is terminated, Entity beans represent persisted information. Because the persisted information can and probably will outlive the JVM that WebLogic Server runs in, we can say that Entity beans outlive WebLogic Server. Figure 22.2 shows the life cycle of an Entity bean.

Figure 22.2. The life cycle of an Entity bean.

Get BEA WebLogic Server™ 8.1 Unleashed 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.