2.2.2 Procedure for operating batch servers and batch applications
This subsection describes the procedure for operating batch servers and batch applications for each system structure.
- Organization of this subsection
(1) Systems integrated with JP1/AJS
With a system that is integrated with JP1/AJS, you can start a batch server, or execute and forcefully stop a batch application with JP1/AJS. With JP1/AJS, you define the operations of batch servers and batch applications as jobs, in advance.
The following figure shows the flow of operations of batch servers and batch applications.
|
The batch server is started from JP1/AJS via Management Server of Application Server. On the other hand, you can directly execute and forcefully stop batch applications from JP1/AJS. With JP1/AJS, you define these operations as the UNIX jobs or PC jobs in advance.
For details on the job definition in JP1/AJS, see 2.13.1 Settings for integrating with JP1/AJS.
- Reference note
-
You can also configure without deploying Management Server. However, if you configure without deploying Management Server, and if an attempt to forcefully stop a batch application fails, you must manually restart the batch server. If you monitor the batch server by using Management Server, the batch server automatically restarts when trouble occurs. Hence, we recommend the operations using Management Server.
(2) Systems integrated with JP1/AJS, BJEX and JP1/Advanced Shell
With a system that is integrated with the following products, you can start a batch server, or execute and forcefully stop a batch application from JP1/AJS, BJEX or JP1/Advanced Shell.
-
JP1/AJS
-
BJEX or JP1/Advanced Shell
With JP1/AJS, BJEX and JP1/Advanced Shell, you define the operations of batch servers or batch applications as jobs in advance.
- Important note
-
When you want to integrate a system with BJEX, you must also integrate the system. When you use JP1/AJS and want to integrate a system with JP1/Advanced Shell, you do not need to integrate the system with JP1/AJS.
The following figure shows the flow of operations of batch servers and batch applications.
|
The batch server is started from JP1/AJS via Management Server of Application Server. Execute batch applications and forced stop of batch applications from JP1/AJS via BJEX or JP1/Advanced Shell. Therefore, in JP1/AJS, BJEX, and JP1/Advanced Shell, you define the following operations as jobs in advance:
-
Starting a batch server
You define as a UNIX job or a PC job of JP1/AJS.
-
Executing a batch application
Specify a job definition XML file of BJEX or job definition script file of JP1/Advanced Shell as a UNIX job or a PC job of JP1/AJS. Define execution of batch applications in the job definition XML file of BJEX or job definition script file of JP1/Advanced Shell.
-
Forced stop of the batch application
If you forcefully stop the running UNIX job or PC job from JP1/AJS, BJEX or JP1/Advanced Shell that receives the instruction, this automatically stops the batch application.
For details on the job definition of JP1/AJS, BJEX, and JP1/Advanced Shell, see 2.13.2 Settings for integrating with JP1/AJS, BJEX, and JP1/Advanced Shell.
- Reference note
-
-
You can also configure without deploying Management Server. However, if you configure without deploying Management Server, and if an attempt to forcefully stop a batch application fails, you must manually restart the batch server. If you monitor the batch server by using Management Server, the batch server restarts automatically when trouble occurs. Hence, we recommend the operations using Management Server.
-
You can use the job log output functionality of BJEX with the batch server. However, the CPU operating time and memory usage of the cjexecjob command are output to the log that is output by using the job log output functionality. You cannot output the CPU operating time and memory usage of a job step of Java batch application itself.
-
(3) Systems not integrated with JP1/AJS, BJEX, and JP1/Advanced Shell
With systems not integrated with JP1/AJS, BJEX, and JP1/Advanced Shell, you directly use commands to start batch servers or forcefully stop batch applications.
The following figure shows the flow of operations of batch servers and batch applications.
|
A batch server is started via Management Server of Application Server by using the commands provided by the Smart Composer functionality. On the other hand, you directly use commands (the batch execution and batch forced stop commands) provided by the batch application execution functionality to forcefully stop the batch applications.
- Reference note
-
You can also configure systems without deploying Management Server. However, if you configure the systems without setting up Management Server and if and attempt to forcefully stop a batch application fails; you must manually restart the batch server. If a batch server is monitoring using Management Server, when trouble occurs, the batch server automatically. Hence, we recommend the operations using Management Server.