Hitachi

uCosminexus Application Server Application Setup Guide


10.2.1 Starting J2EE applications

This subsection describes the following methods for starting J2EE applications:

Organization of this subsection

(1) Starting J2EE applications normally

Execute the following command to start a J2EE application. If resource adapters are included in the J2EE application, all the resource adapters included in the J2EE application will also start automatically.

Execution format
cjstartapp [server-name] [-nameserver provider-URL] -name J2EE-application-name
Example of execution
cjstartapp MyServer -name account

For details on the cjstartapp command, see cjstartapp (start J2EE application) in the uCosminexus Application Server Command Reference Guide.

Note:
  • When a J2EE application references J2EE resource adapters, you first start the J2EE resource adapters, and then start the J2EE application.

  • You cannot control the starting order of resource adapters included in a J2EE application.

  • When invoking Enterprise Beans included in other J2EE applications, start the called J2EE application and then start the calling J2EE application.

(2) Starting J2EE applications by compiling JSP

To start a J2EE application, compile all the JSP files included in the J2EE application.

Execute the following command:

Execution format
cjstartapp [server-name] [-nameserver provider-URL] -name J2EE-application-name -jspc
Example of execution
cjstartapp MyServer -name App1 -jspc

For details on the cjstartapp command, see cjstartapp (start J2EE application) in the uCosminexus Application Server Command Reference Guide.

Note:

In the case of applications in the archive format, the JSP compilation results that are generated by JSP pre-compile when starting the application, are deleted when the application terminates.

For using the JSP compilation results that are generated by JSP pre-compile when starting the application, even after the application terminates, execute the following procedures:

  1. Specify JSP pre-compile and start the application.

  2. Export the application.

  3. Use functionality like the redeploy functionality to switch to an application that contains JSP compilation results.

    For switching between the J2EE applications, see 10.5 Switching between J2EE applications.

Furthermore, after executing JSP pre-compiling at the start of the application, if the application fails to start, the application terminates and the JSP compilation results are deleted. Before executing JSP pre-compiling at the start of the application, confirm that the application can start normally.