Creating multiple consumers/ threads in FTP consumer within single route
Issue
- I want to process files in my
SFTP
using multiple consumers/threads for faster processing. Currently files are consuming one by one in sequential mannner which takes lot of time. Also this behaviour causes problem where route gets stuck if redeliveryDelay is huge and hence other files are not processed due to redelivery of previous file is under process. - If i have 50 files in the
SFTP
server, I want 50 threads to be running simultaneously, read the files and process all the files simultaneously, one file in each thread.
Environment
- Red Hat JBoss Fuse Service Works
- 6.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.