Spring Batch - skippable exception in a TaskletStep
I am trying to cause a job not to have BatchStatus.FAILED if a certain exception occurs. The docs talk about using skippable-exception-classes within <chunk> , but how can I do the same within a TaskletStep ? The below code does not work: <batch:step id="sendEmailStep"> <batch:tasklet> <bean class="com.myproject.SendEmail" scope="step" autowire="byType"> <batch:skippable-exception-classes> <batch:include class="org.springframework.mail.MailException" /> </batch:skippable-exception-classes> </bean> </batch:tasklet> </batch:step> I implemented this functionality in the Tasklet as Michael Minella