...
It should be clear that in order to ensure that processing of the different parallel steps does not get out of step it is necessary to introduce some sort of synchronization. One approach would be to use split and sync jobs as described in our Parallel_Execution_in_a_job_chain FAQ Example for parallel execution in a job chain. It is however important to ensure that the processing of data records is clearly seperated from each another. This clearly seperated serial processing of data is the subject of this FAQ.
...
Note that with this approach JobScheduler locks are not quite used as intended - they are normally aquired by jobs (see our Locks FAQ). Instead they are used as a convenient method of setting a flag.
...
- serial_job_execution_with_locks.zip
Follow the instructions in the 'ReadMe_serial_job_execution_with_locks' file to install and use the example.
See also
- Best Practice - JOE for for guidelines about creating job chains.
- Internal API Job Implementation Tutorial.
- The Rhino section of the JobScheduler API Reference documentation.
- Getting How can I best get started with the JobScheduler Java API Reference Impl?
- The Locks section of the JobScheduler reference documentation]
...