Oct 29th, 2008, 11:34 AM
Adding Restart and Repeat capability to a Job
I was able to successfully write a job that reads a delimited flat file and persist the values to DB. I need to do the following now.
1) Add retry-restart capabilities to the job.
2) Add some capabilities like restart a job only from a specific execution point ie if job fails after some number of lines, say after n lines and say I had an execution point at say (n-10) th line, now i want to restart from (n-10)th line onwards.
3) If the job fails, i wanna retry for a fixed retry counts and run the job again after some time interval.
Is this possible to achieve using spring batch?
I could not find extensive documentation on the same. Please let me know how to achieve the same.