camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard Nguyen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-9252) Batch camel messages
Date Sat, 24 Oct 2015 17:30:27 GMT
Howard Nguyen created CAMEL-9252:
------------------------------------

             Summary: 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)

Mime
View raw message