RESOLVED - BATCH-530: StepExecutionListener should get a chance to modify the execution context

This commit is contained in:
robokaso
2008-05-12 10:53:08 +00:00
parent 879b9fcb12
commit fad3686c2d
2 changed files with 33 additions and 5 deletions

View File

@@ -186,6 +186,7 @@ public abstract class AbstractStep implements Step, InitializingBean, BeanNameAw
try {
exitStatus = exitStatus.and(getCompositeListener().onErrorInStep(stepExecution, e));
getJobRepository().saveOrUpdateExecutionContext(stepExecution);
}
catch (Exception ex) {
logger.error("Encountered an error on listener close.", ex);