IN PROGRESS - issue BATCH-422: Provide ability to specify exception types as well as skip limit in DefaultStepFactoryBean

http://jira.springframework.org/browse/BATCH-422

ItemSkipPolicyItemHandler now always rethrows exception - fixed rollbackJob that wasn't really skipping the error item although it was configured to do so.
This commit is contained in:
robokaso
2008-03-12 12:36:39 +00:00
parent 12b238d350
commit 637f2a61f6
3 changed files with 10 additions and 12 deletions

View File

@@ -74,10 +74,8 @@ public class ItemSkipPolicyItemHandler extends SimpleItemHandler {
contribution.incrementSkipCount();
skip();
}
else {
// Rethrow so that outer transaction is rolled back properly
throw e;
}
// Rethrow so that outer transaction is rolled back properly
throw e;
}