uCosminexus Application Server, Application Setup Guide

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

9.11.1 Defining the context root of a J2EE application

You define the context root of a J2EE application.

You can also define the root context in the context root. Root context is a context of a context root with blank characters "". If a welcome file is created in the root context, the home page of the J2EE application can be displayed from a URL with only the domain name, like http: //www.cosminexus.com/.

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
(4) Notes

(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_war -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_war -c C: \home\adder_war.xml
 

(3) Attribute settings to be edited

The following table describes the property settings for context root definition (<runtime>) of the J2EE application:

Item Mandatory Corresponding tag
Context root Y <context-root>

Legend:
Y: Mandatory

For details on the property settings, see 3.7.1 Contents of the WAR property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.

(4) Notes