[ Team LiB ] Previous Section Next Section

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.

graphics/22fig02.gif

    [ Team LiB ] Previous Section Next Section