Skip to content

Instantly share code, notes, and snippets.

@xerofun
xerofun / gist:500ad1562be97898a167
Created April 14, 2015 12:13
Spring Batch Job Failing Open/Close logic
try {
getCompositeListener().beforeStep(stepExecution);
open(stepExecution.getExecutionContext());
afterOpen(stepExecution.getExecutionContext());
try {
doExecute(stepExecution);
}
catch (RepeatException e) {
throw e.getCause();