-
May 19th, 2010, 09:43 AM
#1
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
-
May 24th, 2010, 11:23 PM
#2
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
-
Forum Rules