Results 1 to 2 of 2

Thread: Problem while launching the spring batch with quartz

Hybrid View

  1. #1

    Default Problem while launching the spring batch with quartz

    Hi,

    I am launching the spring batch through quartz scheduler.Here, i configured the scheduler to run every day.But , first time the quartz scheduler is launching the spring batch , and after sucessful completion, the quartz scheduler is terminating.

    Here I am not uisng the spring batch related quartz configuration.

    By using quartz i have written a scheduler and a job.

    In side the job I am calling

    CommandLineJobRunner.main(new String[] {"sample-config.xml" , "samplerJob"});

    Is there any issuse with configuration?

    Regards,
    Siva

  2. #2
    Join Date
    Dec 2006
    Posts
    1,061

    Default

    The problem is that SB can't determine the difference between executions of your Job. For more details on the difference between an instance and an execution, read here:

    http://static.springsource.org/sprin...ex.html#domain

    However, this can easily be fixed by passing in an extra string parameter to the CommandLineJobRunner, which will be interpreted as a JobParameter. You can optionally use the JobOperator interface as well, which has some default mechanisms for how to handle an already Completed job.

Posting Permissions

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