uCosminexus Application Server, Application Setup Guide

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

9.7.1 Defining Enterprise Bean references

If the Web applications (servlets and JSPs) that form a J2EE application invoke an Enterprise Bean, set the properties for resolving the references.

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

WAR attribute file

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

Acquiring the attribute file

Execute the following command to acquire a WAR attribute file:

Execution format
 
cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE application-name -type war -resname WAR-display-name -c path-of-the-WAR-attribute-file
 

Example of execution
cjgetappprop MyServer -name adder -type war -resname adder -c C:\home\adder_war.xml
 
Setting the attributes

Execute the following command to apply the values of the WAR attribute file:

Execution format
 
cjsetappprop [server-name] [-nameserver provider URL] -name J2EE application-name -type war -resname WAR-display-name -c path-of-the-WAR-attribute-file
 

Example of execution
cjsetappprop MyServer -name adder -type war -resname adder -c C:\home\adder_war.xml
 

(3) Attribute settings to be edited

The settings are similar to the property settings when an Enterprise Bean invokes another Enterprise Bean. See (3) Attribute settings to be edited in 9.3.1 Defining other Enterprise Bean references.