Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9252

Batch camel messages

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.16.0
    • 2.17.0
    • camel-core
    • 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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            khaing211 Howard Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: