Hello.
How can I set the StepInterruptionPolicy in the TaskletStep using XML? Do we have to do use the bean tag for this one to use the setInterruptionPolicy? Or some factory method invoker? Or is there a better way to do this?
Thanks!
Printable View
Hello.
How can I set the StepInterruptionPolicy in the TaskletStep using XML? Do we have to do use the bean tag for this one to use the setInterruptionPolicy? Or some factory method invoker? Or is there a better way to do this?
Thanks!
While the framework has the concept of a StepInterruptionPolicy, there actually isn't a way to inject it. I tried using a parent step with no luck. I've opened a Jira issue to address this. You can track it here: https://jira.springsource.org/browse/BATCH-1953. As always, contributions are appreciated!
Thanks mminella! The xml configuration has to be added, and a parser just needs to get adjusted to use the setter.