Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

And the next part is part of an unit code that demonstrates this feature as we send in 5 exchanges each with a different value in the body.
And we will only get 1 exchange out of the aggregator, but we can access all the individual aggregated exchanges using the GroupedExchange#get methodfrom the List which we can extract as a property from the Exchange using the key Exchange.GROUPED_EXCHANGE.

Wiki Markup
{snippet:id=e2|lang=java|url=camel/trunk/camel-core/src/test/java/org/apache/camel/processor/aggregator/AggregateGroupedExchangeTest.java}

...