uCosminexus Application Server, Application Setup Guide

[Contents][Index][Back][Next]

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
(2) Acquiring the attribute file to be edited and setting the attributes
(3) Attribute settings to be edited

(1) Attribute file to be edited

(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
 
cjsetappprop [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>

Legend:
O: Optional

#
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: