Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

The Composed Message Processor from the EIP patterns allows you to process a composite message by splitting it up, routing the sub-messages to appropriate destinations and the re-aggregating the responses back into a single message.

In Camel we have provide two solutions

The difference is when using only using a Splitter then it aggregates back all the splitted messages into the samme same aggregation group, eg like a fork/join pattern.
Where as Whereas using the Aggregator allows you group into multiple groups, and the a pattern has which provides more options.

Tip

Using the splitter alone is often easier and possibly a better solution. So take a look at this first, before involving the aggregator.

Example using both Splitter and Aggregator

...

Wiki Markup
{snippet:id=e3|lang=java|url=camel/trunk/camel-core/src/test/java/org/apache/camel/processor/SplitAggregateInOutTest.java}
Include Page
CAMEL:Using This PatternCAMEL:
Using This Pattern