[ 
https://issues.apache.org/activemq/browse/CAMEL-2140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57662#action_57662
 ] 

Claus Ibsen commented on CAMEL-2140:
------------------------------------

Currently the timeout and size is a fixed value, which frankly is much easier 
to configure in Spring XML as its just an attribute on the XML tag.

I wonder if the best option is to just introduce headers which can override 
these settings
{{Exchange.AGGREGATE_COMPLETION_TIMEOUT}}
{{Exchange.AGGREGATE_COMPLETION_SIZE}}

The problem is to keep this per correlation group. The timeout is possible as 
its a build in feature into the TimeoutMap Camel uses under the covers.
The size however is currently a global setting. That can be changed to 
introduce a Map based as well so you can override this and have it per 
correlation key.

> Make dynamic aggregator batch options configuration more easy.
> --------------------------------------------------------------
>
>                 Key: CAMEL-2140
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2140
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.0.0
>            Reporter: Eric Bouer
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>
> dynamically setting the batchsize/timeout etc from header or dynamic 
> expression is not straight forward.
> I would expect something like this:
> from("direct:a").aggregate(header("CLASSID")).batchTimeout(header("NUMBEROFSTUDENTS")).to("mock:result")
> or 
> from("direct:a").aggregate(header("CLASSID")).setProperty(Exchange.BATCH_TIMOUT,header("ESTIMATION")).to("mock:result")

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to