Java Reference
In-Depth Information
JobRepository
Aswesaidearlier, JobRepository storesmetadataaboutcurrentandpastrunning
jobs. It can be accessed through JobOperator .
Job
A Job can be seen as an entity to encapsulate a unit of batch processing. It is made
up of one or many steps, which must be configured within an XML file called a Job
configuration file or Job XML . This file will contain job identification information and
different steps that compose the job. The code that follows shows the skeleton of a
Job XML file.
<job id="inscription-validator-Job"
version="1.0"xmlns="http://xmlns.jcp.org/xml/ns/
javaee">
<step id="step1" >
...
</step>
<step id="step2" >
...
</step>
</job>
The Job XML file is named with the convention <name>.xml (for example, in-
scriptionJob.xml ) and should be stored under the META-INF/batch-jobs
directory for portable application.
Step
A Step is an autonomous phase of a batch. It contains all the necessary information
to define and control a piece of batch processing. A batch step is either a chunk or
a batchlet (the two are mutually exclusive). The step of the following code is a chunk
type step:
Search WWH ::




Custom Search