You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by realice <re...@gmail.com> on 2012/09/16 02:48:53 UTC

aggregatorstrategy on specified jms replyto question

Hi, I have the following use case

I'm sending one message with a specified jmsreplyto header and expects 4 or
5 messages on the reply queue, I would like to aggregate these messages
based on the correlationID. I look in the book, the manual and the examples
directory but couldn't find any spring dsl example for such use case, can
anyone help me please?

thanks



--
View this message in context: http://camel.465427.n5.nabble.com/aggregatorstrategy-on-specified-jms-replyto-question-tp5719419.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: aggregatorstrategy on specified jms replyto question

Posted by boday <be...@initekconsulting.com>.
not sure I follow exactly, but here is an example of aggregating based on the
JMSCorrelationID in SpringDSL...

<aggregate strategyRef="aggregatorStrategy" completionSize="5">
    <correlationExpression>
          <simple>header.JMSCorrelationID</simple>
    </correlationExpression>
    <to uri="mock:aggregated"/>
</aggregate>

<bean id="aggregatorStrategy"
class="org.apache.camel.processor.BodyInAggregatingStrategy"/>



-----
Ben O'Day
IT Consultant -http://consulting-notes.com

--
View this message in context: http://camel.465427.n5.nabble.com/aggregatorstrategy-on-specified-jms-replyto-question-tp5719419p5719421.html
Sent from the Camel - Users mailing list archive at Nabble.com.