uCosminexus Application Server, EJB Container Functionality Guide
The lifecycle for various types of Enterprise Beans is explained below:
The lifecycle of a Session Bean is different for a Stateless Session Bean and for a Stateful Session Bean.
The following figure illustrates the lifecycle of a Stateless Session Bean.
Figure 2-1 Lifecycle of a Stateless Session Bean
The following figure illustrates the lifecycle of a Stateful Session Bean.
Figure 2-2 Lifecycle of a Stateful Session Bean
The following figure illustrates the lifecycle of a Singleton Session Bean.
Figure 2-3 Lifecycle of a Singleton Session Bean
An EJB container initializes Singleton Session Bean. Note that you can explicitly define the initialization time during an application development, by specifying the annotation.
Once initialized, the Singleton Session Bean instance exists until the application stops. Operations of an EJB container, when a Singleton Session Bean is destroyed, are as follows:
The following figure shows the lifecycle of an Entity Bean:
Figure 2-4 Lifecycle of a Entity Bean
The following figure shows the lifecycle of a Message-driven Bean.
Figure 2-5 Lifecycle of a Message-driven Bean
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.