0

I m using spring boot with camel . I have the following route configured :

from("file://C:/LOGS/HTTPBESample?delay=1000&recursive=true&noop=true").process(new Processor() {
            public void process(Exchange msg) {
                File file = msg.getIn().getBody(File.class);
                LOG.info("Processing file: " + file.getName()+" file size "+file.length());
        rocessing file: " + s);
            }
        });

However it runs only once , delay should work like a poller which isnt happening ?

darshan kamat
  • 374
  • 7
  • 23

1 Answers1

0

It is still polling, but it is not finding any new files. If you drop a new file in the directory, it will process that one. If you want it to reprocess that same file each poll, you can set the idempotent=false.

Ryan Stuetzer
  • 392
  • 1
  • 4