use an http://camel.apache.org/aggregator2.html aggregator to combine these
into a single exchange (based on size and/or timeout)
from("sftp:...")
.aggregate(constant(true)).completionSize(10).completionTimeout(10000L).groupExchanges()
.process(new MyProcessor());
fachhoch wrote:
>
> I am trying to read files from a remote folder using sftp, I added a
> processor to my consumer.
> The processor is getting called based on number of files , If the remote
> folder has 4 files the processor is called 4 times each time with a file ,
> I want the processor to be called once with all the file , can I do this
> ?
>
-----
Ben O'Day
IT Consultant -http://consulting-notes.com
--
View this message in context:
http://camel.465427.n5.nabble.com/read-all-files-in-folder-tp4474104p4474144.html
Sent from the Camel - Users mailing list archive at Nabble.com.