Apr 25th, 2009, 05:48 AM
Parallel Run / Partioning of Tasklet Step
I have total 7 steps in a job. Out of these i want to run 6th step in parallel.
This step is tasklet step and has database procedure. Code in this tasklet is:
public RepeatStatus execute(StepContribution arg0, ChunkContext chunkContext) throws Exception
1. query to fetch all clients
2. Procedure call for each client in loop
Now, i have arround 10,000 clients. For each client i have to call a procedure in loop. And it takes lots of time.
I want to divide this step in 10 chunks, each chunk will have 1000 clients and call to the database procedure.
I am ready to define 10 seperate steps, if it's possible to run only these 10 setps in parallel.
I came to know M4 release provides way to run steps in parallel, but couldn't find any example to configure the same.
Can anybody suggest the way to run this process in parallel?
Tags for this Thread