tmi wrote:
> 
> Sure, you can specify a batchSize parameter instead of the batchTimeout.
> See http://camel.apache.org/aggregator.html. You can also define your own
> aggregation strategy and completedPredicate as explained in the Camel docs
> and the blog mentioned previously:
> http://tmielke.blogspot.com/2009/01/using-camel-aggregator-correctly.html.
> 

OK, I obviously was on the wrong track. I inserted a completion predicate
and now things seem to work better. The predicate was actually pretty simple
to construct.

<completionPredicate>
        <simple>${in.header.CamelSplitSize} ==
${property.CamelAggregatedSize}</simple>
</completionPredicate>

What still puzzles me, is how to define a timeout. I have learnt that
"batchTimeout" is inappropriate. 
Is there any built-in facility or am I to introduce some timestamp-header
and do calculations on this basis?

-- Frank
-- 
View this message in context: 
http://www.nabble.com/Aggregator-batchTimeout-tp23127654p23270670.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to