Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.16.0
-
None
-
Unknown
-
Patch
Description
This is a new feature to batch camel messages.
<bean id="groupMessageAggregationStrategy" class="org.apache.camel.processor.aggregate.GroupedMessageAggregationStrategy" /> <route> <from uri="direct:order"/> <aggregate strategyRef="groupMessageAggregationStrategy" completionSize="500" completionTimeout="3000"> <correlationExpression> <simple>${header[some.thing]}</simple> </correlationExpression> <to uri="direct:aggregatedOrders"/> </aggregate> </route> <route> <from uri="direct:aggregated"/> <bean ref="externalResource" method="batchOrders"/> <split> <xpath>/invoice/lineItems</xpath> <to uri="mock:result" /> </split> </route>
This is different from GroupedExchangeAggregationStrategy, because Splitter supports org.camel.Message.