You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Claus Ibsen <cl...@gmail.com> on 2011/06/09 22:35:33 UTC

Re: read all files in folder

There is a complete from batch consumer option on aggregator so you
dont need to use size or timeout. See the documentation


On Thursday, June 9, 2011, boday <be...@initekconsulting.com> wrote:
> 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.
>

-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/