camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Commented: (CAMEL-2140) Make dynamic aggregator batch options configuration more easy.
Date Thu, 18 Feb 2010 09:36:40 GMT


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

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:
>             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.

View raw message