Results 1 to 6 of 6

Thread: Scheduling multiple Quartz triggered Jobs with Spring Batch

  1. #1
    Join Date
    May 2006
    Location
    NewJersey
    Posts
    12

    Default Scheduling multiple Quartz triggered Jobs with Spring Batch

    Hi
    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?

  2. #2
    Join Date
    May 2006
    Location
    NewJersey
    Posts
    12

    Default

    Finally i figured it out. I'm able to run multiple jobs with diferent cron triggers using JobRegistryBackgroundJobRunner.

  3. #3
    Join Date
    Nov 2008
    Posts
    232

    Default

    How did you do that

  4. #4

    Default

    Quote Originally Posted by ganesh_d View Post
    Finally i figured it out. I'm able to run multiple jobs with diferent cron triggers using JobRegistryBackgroundJobRunner.
    Hi Ganesh,
    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.

    ~Adish

  5. #5

    Thumbs up Steps to be followed to run JobRegistryBackgroundJobRunner

    I could run the footballJob using JobRegistryBackgroundJobRunner. Follow the below steps:
    1. Edited jobs/footballJob.xml and changed the reference of simple-job-launcher-context.xml with quartz-job-launcher-context.xml
    2. 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:
    1. Edit the sample job definition file with quartz-job-launcher-context.xml
    2. Edit quartz-job-launcher-context.xml file with respective job name for attribute jobName for bean jobDetail

  6. #6
    Join Date
    Nov 2011
    Posts
    2

    Default

    Can u please provide the details how to configure it? or u can give demo code attached here.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •