Thanks for your response.I have around 50 routes and each routes is replicated on 5 nodes.The way you suggested isn't it possible that all the 50 files will be processed by one node while other 4 nodes will remain idle.
On Wed, 7 Aug, 2019, 4:46 AM Farkas Lajos, <farkas.la...@gloobus.it> wrote: > Hello, > > the simplest way > > 1.create one route which gets all the files or their names, and puts them > on a queue (activemq activemq) > 2. the processing routes from the clusters are all listening on the queue, > and by the way the queue works, each of them will receive different > filenames to process, in a distributed way > > Regards > Laji > > > > On Fri, Aug 2, 2019 at 1:02 PM arshad dar <ayrshi...@gmail.com> wrote: > > > Hi All, > > > > i have few camel routes which are reading from a directory say Samples. > the > > camel is running on multiple nodes and all systems are reading files from > > centralized location. > > my question how can i distribute files equally among all nodes. > > > > > > -- > > Arshid > > >