Thanks a lot for your recommendation. :) But your solution can't be fit to my requirement, because interface Job can't get step like SimpleJob.
Our requirement is to get all steps in each job.
...
Type: Posts; User: samartae; Keyword(s):
Thanks a lot for your recommendation. :) But your solution can't be fit to my requirement, because interface Job can't get step like SimpleJob.
Our requirement is to get all steps in each job.
...
I get job from from ClassPathXmlJobRegistry and then I cast to SimpleJob as following code.
JobRegistry jobRegistry = (ClassPathXmlJobRegistry) getBean("jobRegistry");
Job job =...
Is it the best practice to use CommandLineJobRunner with multiple run by change JobParameter which define incrementer in the Job ???
Please see my implementation as below:
1. Copy method register...
Please use org.springframework.batch.core.launch.support.JobRegistryBackgroundJobRunner instead of CommandLineJobRunner.
Example below:
JobRegistryBackgroundJobRunner.main(new...