On Tue, Sep 28, 2010 at 11:29 AM, Andreas A. <andreasasm...@gmail.com> wrote:
>
> Hi
>
> Yeah but the problem is that I only poll once per 24 hours (with a simple
> delay on the file endpoint) and I want all the messages to be picked up
> everytime.
> --

Ah then use a completion predicate instead and just indicate true at
every 100th message being aggregated.

And the batch consumer will set set the following properties on the
Exchange you can use

    String BATCH_INDEX                = "CamelBatchIndex";
    String BATCH_SIZE                 = "CamelBatchSize";
    String BATCH_COMPLETE             = "CamelBatchComplete";

You can then use that to know when the last batch message arrived and
thus when you are complete.



> View this message in context: 
> http://camel.465427.n5.nabble.com/Aggregator-completionFromBatchConsumer-fallback-max-messages-tp2856427p2856438.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