Announcement Announcement Module
Collapse
No announcement yet.
How do I stop execution and always do final step? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
Working...
X