On Tue, Sep 28, 2010 at 11:13 AM, Andreas A. <andreasasm...@gmail.com> wrote:
>
> Hi
>
> I want to build a route where I poll for all files in a directory every 24
> hours, then aggregate the files in different groups and send them. So far I
> have used an aggregator as below, but now a requirement to have a maximum of
> for instance 100 messages per aggregated message has arisen. Any ideas how
> to do this?
>

You can limit the file consumer to max 100 files using the
maxMessagesPerPoll option.


> <aggregate strategyRef="myAggregator" completionFromBatchConsumer="true">
>        <correlationExpression>
>                <header>receiverAddress</header>
>        </correlationExpression>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Aggregator-completionFromBatchConsumer-fallback-max-messages-tp2856427p2856427.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to