Claus (or any other ), please correct me if I’m wrong but

all the GroupedAggregationStrategies extends AbstractListAggregationStrategy
and by inheritance aggregate() is called on the extended class if not provided 
by own class.
This method in Camel 2.25.0 is only returning the Exchange (old/new on a 
condition). 
Internally it retrieves a List from the Exchange and adds to that List but the 
List is then never used or added to any Exchange.

If I’m correct then maybe it is why he doesn’t get the expected results?


Also AggregationStrategies, is this a new feature in Camel 3?


Sorry for hijacking the thread, Craig!

Thx

M

> On 4 Apr 2020, at 09:50, Claus Ibsen <claus.ib...@gmail.com> wrote:
> 
> Hi
> 
> Are you really sure as its supposed to store a List<Object> that are
> the message body.
> But there are however only one unit test for this in camel-jms, so
> lets add one to camel-core.
> 
> On Fri, Apr 3, 2020 at 11:23 PM Craig Taylor <ctalk...@ctalkobt.net> wrote:
>> 
>> I'm wanting to accumulate all exchanges matching a correlation expression
>> (id) into a list for a given period of time.  I've looked at the
>> GroupedBodyAggregationStrategy and it returns an Exchange with a body of
>> List<Exchange>'s where I had expect an Exchange with a body of
>> List<Body_type> back.
>> 
>> aggregate(simple("${body.id}"), new GroupedBodyAggregationStrategy())
>>    .completionTimeout(5000L)
>> 
>> I wasn't able to find documentation on the built-in aggregator however,
>> this "sounds" like the right one to use based on naming.  Desperation wise,
>> attempting the other Grouped Aggregators didn't yield the solution either.
>> 
>> Thanks,
>> --
>> -------------------------------------------
>> Craig Taylor
>> ctalk...@ctalkobt.net
> 
> 
> 
> -- 
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to