-
Mar 6th, 2009, 04:40 PM
#1
Is NoWorkFoundStepExecutionListener working?
Hi,
In 2.0M4, I've added a NoWorkFoundStepExecutionListener to the configuration of a SimpleStepFactoryBean. My hope was to fail the step when the item count is zero in the callback. The JavaDoc appears to indicate this behavior for the listener: "Fails the step if no items have been processed ( item count is 0)."
The listener throws the NoWorkFoundException, but it does not change the ExitStatus, and the step is recorded as completed rather than failed. Am I missing something?
Thanks,
David
-
Mar 6th, 2009, 05:26 PM
#2
This is a bug and I have logged an issue: http://jira.springframework.org/browse/BATCH-1125.
Thanks for the report.
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