You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/12/18 18:02:46 UTC

[jira] [Commented] (CAMEL-9252) Batch camel messages

    [ https://issues.apache.org/jira/browse/CAMEL-9252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064212#comment-15064212 ] 

ASF GitHub Bot commented on CAMEL-9252:
---------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/camel/pull/656


> Batch camel messages
> --------------------
>
>                 Key: CAMEL-9252
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9252
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.16.0
>            Reporter: Howard Nguyen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.17.0
>
>
> This is a new feature to batch camel messages.
> {code}
> 	<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>
> {code}
> This is different from GroupedExchangeAggregationStrategy, because Splitter supports org.camel.Message.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)