Is there a way to pass a stream while launching the job through job Launcher, something similar to passing jobParameters?
I have a separate service for getting file and then I want to initiate the batch job to load it.
Code scenario :
Consider this sample. Here job is defined but actual launcher resides in the dependency underneath.
So consider in sample, I add a controller which read user's input file and then trigger the sample-job defined in sample which is run by joblauncher.run of underneath.
I was thinking to pass this file stream directly to the job's reader instead of writing it to external disc and reading in Reader's setSeResource