How to pre-populate ExecutionContext because JobParameter can not accept an object
I want to send big arraylist to my Job so that I can iterate through ListItemReader. I can not send through JobParameter as it does not accept Object. I may be able to save arraylist in a reference and then access the arraylist in item-reader's beforeStep method. But then, I have to take care of multiple jobs running in parallel.
But is there any elegant way to pre-populate executionContext when JobParameters are created and job is run using JobLauncher ?
Thanks