How to configure camel file endpoint to consume multiple files at a time ?

Solution Verified - Updated -

Issue

  • If there are multiple files at the source directory, the file component is consuming only one file at a time. please provide your valuable suggestion to make this endpoint multi threaded.
from("file://invox?autoCreate=false&startingDirectoryMustExist=true&initialDelay=1000&delay=10000&readLock=changed&readLockCheckInterval=5000&readLockTimeout=50000&move=done&moveFailed=error")....to(..);
  • In the above route, if we set the readLock=changed&readLockCheckInterval=5000, we don't see the file are being processed in parallel. We need these parameters to be present because we need to audit for file changes being written. Is there any way we can achieve parallel processing of the messages with the readLock=changed ?

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Apache Camel
    • file2 component

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content