RESOLVED - issue BATCH-443: ItemOrientedStep might not either commit or rollback transaction

Needed to flush before attempting to update step execution, then catch and attempt rollback on CommitFailedException.
This commit is contained in:
dsyer
2008-03-11 17:22:25 +00:00
parent f7fb3752bc
commit 19348abbb3
3 changed files with 117 additions and 71 deletions

View File

@@ -572,7 +572,7 @@ public class ItemOrientedStepTests extends TestCase {
itemOrientedStep.setTransactionManager(new ResourcelessTransactionManager() {
protected void doCommit(DefaultTransactionStatus status) throws TransactionException {
// Simulate failure on rollback when stream resets
// Simulate failure on commit
throw new RuntimeException("Bar");
}
});