-
Oct 2nd, 2009, 08:55 AM
#1
How do I stop execution and always do final step?
I am using Srping Batch 1.1.3.RELEASE-A, I can't change that. I have several batch jobs I'm working on. I need to stop the job if there is a mismatch between the input text file and a table it uses. Right now I throw a JobInterruptedException to make sure no more steps are executed. Is that a good way to stop a job ? Also I have added a final step that executes a tasklet to update a status table. I need to make sure that the job always executes this final step. How can I make the job executes this tasklet even if the job throws an exception, including a JobInterruptedException ?
Thanks for any help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules