9.15.2 Setting the invocation order for Enterprise Beans
Set up the invocation order for the Enterprise Beans.
- Organization of this subsection
(1) Attribute file to be edited
-
Session Bean attribute file
-
Entity Bean attribute file
-
Message-driven Bean attribute file
(2) Acquiring the attribute file to be edited and setting the attributes
-
Acquiring the attribute file
Execute the following command to acquire an Enterprise Bean attribute file that is to be edited:
- Execution format
cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type ejb -resname EJB-JAR-display-name/Enterprise-Bean-display-name -c path-of-the-Enterprise-Bean-attribute-file#
- #
-
Specify the path of an attribute file that is to be edited in the path of the Enterprise Bean attribute file.
- Example of execution
cjgetappprop MyServer -name account_eb -type ejb -resname account/account -c C:\home\MyAccount.xml
-
Setting the attributes
Execute the following command to apply the values of the edited Enterprise Bean attribute file:
- Execution format
jsetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type ejb -resname EJB-JAR-display-name/Enterprise-Bean-display-name -c path-of-the-Enterprise-Bean-attribute-file#
- #
-
In the path of the Enterprise Bean attribute file, specify the path of the attribute file in which the values are to be applied.
- Example of execution
cjsetappprop MyServer -name account -type ejb -resname account/account_eb -c C:\home\MyAccount.xml
(3) Attribute settings to be edited
The following table describes the invocation order settings for the Enterprise Bean:
Item |
Mandatory |
Corresponding tag |
---|---|---|
Start and stop order# |
O |
<start-order> |
- #
-
The smaller the value, the earlier the application will start and larger the value, the earlier the application will stop. Note that if you specify the same value for the Enterprise Beans, the invocation order between the beans may not be as desired.
For property settings, reference the following subsections:
-
3.4.1 Specifications of the HITACHI Session Bean Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide
-
3.5.1 Specifications of the HITACHI Entity Bean Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide
-
3.6.1 Specifications of the HITACHI MessageDrivenBean Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide