Results 1 to 6 of 6

Thread: Looking to use spring batch with Quartz

  1. #1
    Join Date
    Aug 2007
    Posts
    2

    Default 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

  2. #2
    Join Date
    Apr 2008
    Posts
    28

    Default

    Hey Parimal,

    I am working in a Quartz-Spring batch project. Please log your refined questions, we will discuss.

    Thanks,
    Shahul

  3. #3

    Default

    There is QuartzBatchLauncher provided in the samples and eclipse run configuration (quartzLauncher) - those should get you started.

  4. #4
    Join Date
    Aug 2007
    Posts
    2

    Default

    Thanks guys. I m in the initial research as we might need to modify some source for our requirement. but initial research seems positive.

  5. #5
    Join Date
    Oct 2008
    Posts
    1

    Default 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

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

    Default

    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
  •