I need to pass data related to processing an item in between item processors, I don’t need to persist the data, what is the best approach (Note I’m currently using StepSynchronizationManager to access the stepExecution and store the data in ExecutionContext).
Share
What makes you think, that your way – storing the data in StepExecutionContext – is a bad or not the best way ?
You could try it without saving the data in the StepExecution and instead change the items between the processors
see Spring Batch Doc – Chaining Item Processors