Does groupExchanges() method still exist in apache Camel as part of the AggregationDefinition?

140 views Asked by At

Is there a replacement for the groupExchanges() method; which, according to the latest documentation, should be possible however, I am unable to compile the code as the method seems to have vanished.

1

There are 1 answers

0
Bedla On BEST ANSWER

This method is deprecated since Apache Camel 2.15.x and removed since 2.18.x. You are supposed to use GroupedExchangeAggregationStrategy instead.

.aggregate(new GroupedExchangeAggregationStrategy()) // Or AggregationStrategies.groupedExchange()

I have fixed documentation, on the website it will be deployed soon.