uCosminexus Application Server, Application Setup Guide

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

9.13.2 Referencing and changing the Enterprise Bean name

You reference and change the Enterprise Bean name of the following Enterprise Beans:

Organization of this subsection
(1) Attribute files to be edited
(2) Acquiring the attribute files to be edited and setting the attributes
(3) Attribute settings to be edited
(4) Notes

(1) Attribute files to be edited

(2) Acquiring the attribute files to be edited and setting the attributes

Acquiring the attribute files

Execute the following command to acquire an Enterprise Bean attribute file (Session Bean attribute file or Entity Bean attribute file):

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 file path of the Session Bean attribute file or the Entity Bean attribute file in the path of the Enterprise Bean attribute file.

Example of execution
cjgetappprop MyServer -name account -type ejb -resname account/MyAccount -c C: \home\MyAccount.xml
 
Setting the attribute files

Execute the following command to apply the values of the Enterprise Bean attribute file (Session Bean attribute file or Entity 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#
 
#
Specify the path of the Session Bean attribute file or the Entity Bean attribute file in the path of the Enterprise Bean attribute file.

Example of execution
cjsetappprop MyServer -name account -type ejb -resname account/MyAccount -c C: \home\MyAccount.xml

(3) Attribute settings to be edited

Reference and change the Enterprise Bean name of the Enterprise Bean attribute file (Session Bean attribute file or Entity Bean attribute file) with the runtime attributes (<runtime>).

Items Mandatory Corresponding tags
Lookup name of the Enterprise Bean Y <lookup-name>
Optional name of the Enterprise Bean name having a remote interface O <optional-name>
Optional name of the Enterprise Bean name having a local interface O <local-optional-name>

Legend:
Y: Mandatory
O: Optional

For property settings, reference the following subsections:

(4) Notes