Hitachi

uCosminexus Application Server Application Setup Guide


7.2.4 Creating a new J2EE application

Create a J2EE application on the basis of the imported EJB-JAR and WAR files. Moreover, add RAR files that you want to use with EJB-JAR and WAR files.

Organization of this subsection

(1) Adding the EJB-JAR files

Execute the following command to add an EJB-JAR file. If the J2EE application does not exist, a new J2EE application will be created.

Execution format
cjaddapp [server-name] [-nameserver provider-URL] -type ejb -name J2EE-application-name -resname EJB-JAR-display-name
Example of execution
cjaddapp MyServer -type ejb -name adder -resname adder

For details on the cjaddapp command, see cjaddapp (add resource) in the uCosminexus Application Server Command Reference Guide.

(2) Adding the WAR files

Execute the following command to add a WAR file. If the J2EE application does not exist, a new J2EE application will be created.

Execution format
cjaddapp [server-name] [-nameserver provider-URL] -type war -name J2EE-application-name -resname WAR-display-name
Example of execution
cjaddapp MyServer -type war -name adder -resname adder_war

For details on the cjaddapp command, see cjaddapp (add resource) in the uCosminexus Application Server Command Reference Guide.

(3) Adding RAR files

You execute the following command to add RAR files. If a J2EE application does not exist, a new J2EE application will be created:

Execution format
cjaddapp [server-name] [-nameserver provider-URL] -type rar -name J2EE-application-name -resname RAR-display-name
Example of execution
cjaddapp MyServer -type rar -name adder -resname account-rar

For details on the cjaddapp command, see cjaddapp (add resource) in the uCosminexus Application Server Command Reference Guide.

(4) Notes