3.3 Executing Java batch applications by using the adshjava command provided by JP1/Advanced Shell [only for Windows, Linux, AIX, and HP-UX]
The following describes the prerequisites and the execution method for executing Java batch applications by using the adshjava command provided by JP1/Advanced Shell.
-
Prerequisites
Install uCosminexus Application Server in the same host as JP1/Advanced Shell. Start the batch server after setting the batch server. For details on the required programs, see 2.2.2 Programs required in each environment.
-
Execution methods
The following describes the procedure for executing Java batch applications.
-
Create a Java batch application.
For notes on creating Java batch applications, see uCosminexus Application Server Expansion Guide.
-
Execute the Java batch application by using the adshjava command provided by JP1/Advanced Shell. Specify the argument to pass to the cjexecjob command (execution of the Java batch application) of uCosminexus Application Server for the adshjava command.
For details on the execution role and execution methods of the adshjava command, see 8.3.10 adshjava command (executes Java batch applications) [only for Windows, Linux, AIX, and HP-UX].
-
For the adshjava command, specify the argument specified for the cjexecjob command and execute the command.
For details on the cjexecjob command, see the manual uCosminexus Application Server Command Reference Guide.
-
The adshjava command returns the results of the cjexecjob command of uCosminexus Application Server.
To confirm the results of the cjexecjob command, check the return code of the adshjava command.
If the job controller detects a forced termination during job execution, it automatically executes the cjkilljob command (to stop the batch application) for uCosminexus Application Server. As a result, the job is terminated after the Java batch application being executed is forcibly terminated.
-