Results 1 to 2 of 2

Thread: How to create a Poller with Spring Batch

  1. #1
    Join Date
    Jan 2010
    Posts
    11

    Default How to create a Poller with Spring Batch

    hi

    we want to poll every 1 minute a directory and read (process) all files that are in there with spring batch.

    solution 1:
    we call our spring-batch job with a spring-quartz every minute.
    problem: if a job would take longer than 1 minute, a second job would start also, how can we prevent this.

    solution 2:
    we use spring integration poller.
    it would be nice solution, but we like to know if it is possible with spring-batch also ;-)

    thanks for you help!

  2. #2
    Join Date
    Apr 2008
    Posts
    15

    Default

    You can use Quartz. You can set it up so that it will not start the new batch until the previous one has finished.

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
  •