logger.info("launched main job: " + mainJob.getName());
return mainJobExecution.getId();
}
private StepExecutionListener[] createJobStepListener() {
SimpleStepExecutionListener jobStepListener =
new SimpleStepExecutionListener();
jobStepListener.setJobRegistry(jobRegistry);
jobStepListener.setJobExecutionStatusHolder(mainJobExecutionStatusHolder);
return new SimpleStepExecutionListener[] { jobStepListener };
}