Sep 12th, 2012, 07:58 AM
Restart mechanism in Spring batch
Assume that I have an of 10000 requests/items, I have configured skip limit as 100 ,
Now batch started reading/processing
in the middle the items are skipped continously becoz of a third party server instance down for some n hours.
after 100 th skip , the job fails .
which this scenario I have foloowing open questions
1) How to restart the job after the server instance is UP , do we need to have any unique id , if then where to configure it ?
2) If I restart the job manually , will it process all items again from beginning or will it start from the last skipped position ?
3) if restart starts from last skipped position (i.e 100 th skipped item), how shall i restart fromthe 1 st skipped item
because those have to be processed again .
Here which is reffered as "left Off position " - 1st skipped item or 100 th skipped item ??/
Please reply in detail .
Sep 14th, 2012, 12:33 PM
Metadata in the database is used during a job restart to attempt to pick up where it left off.
Are you doing chunk processing?
Sep 18th, 2012, 04:21 AM
This is nice.
this is right because i have try it.
Tags for this Thread