How can we share data between the different steps of a Job in Spring Batch?

the job repository is used indirectly for passing data between steps (Jean-Philippe is right that the best way to do that is to put data into the StepExecutionContext and then use the verbosely named ExecutionContextPromotionListener to promote the step execution context keys to the JobExecutionContext. It’s helpful to note that there is a listener for … Read more