pass -next option to spring JobLauncher
I am executing the batch job programatically using
org.springframework.batch.core.launch.JobLauncher
In my code, I have statement like
JobExecution result = jobLauncher.run(job, parameters);
Most of the batch jobs I have run with parameters, but one of my batch job
does not take any parameters. So, I have set up that job with
org.springframework.batch.core.launch.support.RunIdIncrementer
In order to user incrementer, I have to provide -next option to
JobLauncher. How do I pass my jobLauncher this -next parameter?
No comments:
Post a Comment