RESOLVED - BATCH-825: Modify JobLauncher contract to not throw exception on job failure.

exceptions are now logged before added to failure list
This commit is contained in:
robokaso
2008-10-15 09:26:08 +00:00
parent de4060b38c
commit fa2b04a1db

View File

@@ -238,10 +238,12 @@ public abstract class AbstractJob implements Job, BeanNameAware, InitializingBea
}
catch (JobInterruptedException e) {
logger.error(e);
execution.setStatus(BatchStatus.STOPPED);
execution.addFailureException(e);
}
catch (Throwable t) {
logger.error(t);
execution.setStatus(BatchStatus.FAILED);
execution.addFailureException(t);
}