2.3.10 Settings in the execution environment (batch server settings)
You must perform batch server settings, if you want to use batch application execution functionality. Implement the batch server settings in the Easy Setup definition file.
- Important note
-
By default, the scheduling functionality is not used (set to false). When not using the scheduling functionality, do not change settings of the following parameter and key.
-
ejbserver.ctm.enabled parameter of a logical J2EE server (j2ee-server) in the Easy Setup definition file.
-
batch.ctm.enabled key in usrconf.cfg (object definition file for batch application)
-
You specify the definition of batch application execution functionality in the <configuration> tag of the logical J2EE server (j2ee-server) of the Easy Setup definition file.
The following table describes the definition of batch application execution functionality in the Easy Setup definition file.
Legend:
Required: Must be specified
Optional: Specify as and when required
Note: For details on the Easy Setup definition file and parameters, see uCosminexus Application Server Definition Reference Guide.
#1 In the case of a batch server, you use the light transaction functionality that provides the optimized environment in a local transaction. The light transaction functionality is enabled, if false is specified in the ejbserver.distributedtx.XATransaction.enabled parameter.
#2 If false is specified in the ejbserver.batch.application.exit.enabled parameter, you cannot use the JavaVM end method and shutdown hook. Take actions as followings:
-
Actions for the JavaVM end method
You code the batch processing contents in the public static int main(String[]) method. When returning end code, you use return end-code. However, if you use return, the finally block is executed.
-
Actions for shutdown hook
If you want to implement processing, when closing a batch application, code the processing in the finally block of the main method.