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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.