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

Solution Verified - Updated -


  • 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.
  • 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 ?


  • 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