-
May 17th, 2008, 04:35 PM
#1
Looking to use spring batch with Quartz
Hi All,
We are planning to use Spring batch with quartz. the basic idea is quartz will kick off a spring batch Job as i think we can have better control by breaking down a task(batch Job) in the relatively small batch steps and control them at the steps level. Is there anyone using the same architecture or did any experiments? looking for any kind of feedback anyone have.
Thanks in advance
Parimal
-
May 19th, 2008, 12:06 AM
#2
Hey Parimal,
I am working in a Quartz-Spring batch project. Please log your refined questions, we will discuss.
Thanks,
Shahul
-
May 19th, 2008, 03:23 AM
#3
There is QuartzBatchLauncher provided in the samples and eclipse run configuration (quartzLauncher) - those should get you started.
-
May 20th, 2008, 01:41 PM
#4
Thanks guys. I m in the initial research as we might need to modify some source for our requirement. but initial research seems positive.
-
Nov 4th, 2008, 08:44 AM
#5
Quartz + Spring batch
Hi all,
I am trying to use Spring batch with quartz.
My quartz program aims to execute un job every 10 secondes.
Without Spring batch Quartz perform the job every 10 secondes.
With Spring batch Quartz perform the job once.
I used QuartzBatchLauncher.java provided with Spring batch example.
Can you help me please;
ould
-
Nov 4th, 2008, 04:38 PM
#6
You probably need to make sure you're 'incrementing' the JobParameters after every run, otherwise, Spring Batch thinks you're trying to run the same instance again. If you don't think you'll ever have a need to restart, you can just use the current system time, if not, you probably need to use a database table to store whether the last run was successful, and if so increment the parameter. (Note in 2.0 this is much easier with the inclusion of the JobParametersIncrementer interface)
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