Feb 18th, 2009, 07:44 PM
Scheduling multiple Quartz triggered Jobs with Spring Batch
I'm trying to configure multiple jobs in spring batch triggered by Quartz triggers.
I looked at the footballjob example in the spring batch example project and configured a single job and executed it successfully using JobRegistryBackgroundJobRunner.
But I'm not sure how to configure multiple jobs and execute it with JobRegistryBackgroundJobRunner.
Can anyone provide me a sample config file?
Feb 18th, 2009, 08:33 PM
Finally i figured it out. I'm able to run multiple jobs with diferent cron triggers using JobRegistryBackgroundJobRunner.
May 14th, 2009, 12:44 AM
Jun 4th, 2009, 03:42 PM
Originally Posted by ganesh_d
Can you please tell me how you did the setup. I have a requirement that Quartz should initiate the second Job if the first job run successfully.
Jul 14th, 2009, 03:45 AM
Steps to be followed to run JobRegistryBackgroundJobRunner
I could run the footballJob using JobRegistryBackgroundJobRunner. Follow the below steps:
- Edited jobs/footballJob.xml and changed the reference of simple-job-launcher-context.xml with quartz-job-launcher-context.xml
- Ran the JobRegistryBackgroundJobRunner with jobs/footballJob.xml as command line argument
To run any other Spring-Batch sample jobs using JobRegistryBackgroundJobRunner, follow the below steps:
- Edit the sample job definition file with quartz-job-launcher-context.xml
- Edit quartz-job-launcher-context.xml file with respective job name for attribute jobName for bean jobDetail
Dec 5th, 2011, 09:11 PM
Can u please provide the details how to configure it? or u can give demo code attached here.
Tags for this Thread