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.
The complete source code for this tutorial is located under the project
How to do it...
- When using Aggregator, ...