Aggregating multiple messages into one (Intermediate)
The Aggregator pattern is the opposite of the Splitter pattern; it combines multiple messages into one. In a message driven application, it usually appears after Splitter or the Recipient List patterns where a number of messages have been produced out of one, and the goal of the Aggregator is to merge back related messages. In this tutorial, we will create a route that merges messages belonging to the same group into one.

Getting ready
The complete source code for this tutorial is located under the project camel-message-routing-examples/aggregating-messages
.
How to do it...
- When using Aggregator, ...
Get Instant Apache Camel Message Routing now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.