Nov 23rd, 2011, 12:30 AM
How to create a Poller with Spring Batch
we want to poll every 1 minute a directory and read (process) all files that are in there with spring batch.
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.
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!
Nov 23rd, 2011, 02:47 AM
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