You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Howard Nguyen (JIRA)" <ji...@apache.org> on 2015/10/24 19:40:27 UTC

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

     [ https://issues.apache.org/jira/browse/CAMEL-9252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard Nguyen updated CAMEL-9252:
---------------------------------
    Description: 
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.

  was:
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.


> 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
>            Priority: Minor
>
> 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)