Java jobs
A Java job runs a Java class of your choice.
A description of the job properties and valid values are detailed in the context-sensitive help in the Dynamic Workload Console by clicking the question mark (?) icon in the top-right corner of the properties pane.This section describes the required and optional
attributes for Java jobs. Each job definition has the following format
and arguments:
For more information about developing a Java job, see Developer's Guide: Extending HCL Workload Automation.
Attribute | Description/value | Required |
---|---|---|
application name | java | ✓ |
jarPath | The directory where the jar files are stored. This includes all jar files stored in the specified directory and all sub directories. | |
className | The name of the class that the job must run. | ✓ |
parameter key | The parameters to be used when running the Java class. |
The following example shows a job that runs a class
with name com.ibm.test.Test and parameter failExecution:
$JOBS
AGENT#JAVA
TASK
<?xml version="1.0" encoding="UTF-8"?>
<jsdl:jobDefinition xmlns:jsdl="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdl"
xmlns:jsdljava="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdljava" name="java">
<jsdl:application name="java">
<jsdljava:java>
<jsdljava:javaParms>
<jsdljava:jarPath>C:\JavaExecutors</jsdljava:jarPath>
<jsdljava:className>com.ibm.test.Test</jsdljava:className>
<jsdljava:parameters>
<jsdljava:parameter key="input">failExecution</jsdljava:parameter>
</jsdljava:parameters>
</jsdljava:javaParms>
</jsdljava:java>
</jsdl:application>
</jsdl:jobDefinition> DESCRIPTION "Defined using composer."
RECOVERY STOP
See also
From the Dynamic Workload Console you can perform the same task as described in
For more information about how to create and edit scheduling objects, see