uCosminexus Application Server, Application Setup Guide

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

7.9 Setting a reference library in the J2EE application

You set a reference library in a J2EE application.

Set the reference library of a J2EE application in the J2EE application attribute file. For details on how to set the properties, see 3.5 Property settings using the property file.

Organization of this section
(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

Application attribute file

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

Acquiring the attribute file

Execute the following command to acquire the application attribute file:

Execution format

cjgetappprop [server-name] [-nameserver provider-URL] -name J2EE-application-name -c path-of-application-attribute-file
 

Example of execution
cjgetappprop MyServer -name App1 -c C:\home\app1.xml
 
Setting the attributes

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

Execution format

cjsetappprop [server-name] [-nameserver provider-URL] -name J2EE-application-name -c path-of-application-attribute-file
 

Example of execution
cjsetappprop MyServer -name App1 -c C:\home\app1.xml
 

(3) Attribute settings to be edited

Specify the class path (<classpath>) of the specification (<ref-libraries>) of the library JAR to be referenced.

To specify the reference library class that is set up here in the property file, you must copy that reference library file onto the machine that executes server management commands, and then specify the path of the copied reference library file for the USRCONF_JVM_CLASSPATH in the option definition file used for server management commands.