Well, it seems like you send a message to TOQUEUE. There must be a component X listening on TOQUEUE (whose code you haven't posted - hence I'm calling it 'X'), which does something to the message and sends a reply on REPLYQUEUE. Are you sure this what you're pursuing?
The aggregation route listening on REPLYQUEUE will *not* send a reply back if component X doesn't in turn set a JMSReplyTo header when it sends the message to REPLYQUEUE. Bear in mind that, in order to get the result of the aggregation, component X must tell Camel where it wishes to get the reply. Otherwise you can't expect Camel to reply because it doesn't know where to send the message, thus it acts InOnly. It's all a bit too tangled and hard to explain without a diagram, but I hope I'm getting my point across nevertheless ;) Regards, --- *Raúl Kripalani* Apache Camel Committer Enterprise Architect, Program Manager, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk <http://twitter.com/raulvk> On Tue, Oct 2, 2012 at 6:18 PM, realice <[email protected]> wrote: > Hi, i do the aggregation bean and if i put something like <to > uri="mock:aggregated"/> in the aggregation route, it seems to load up ok. > my > full xml is too ugly to post, so i'm just posting the route, thanks again > > <when> > <simple>${in.header.operationName} == 'A'</simple> > <log message="Got ${in.header.operationName}"/> > <split> > < > <method bean="B" method="methodB"/> > > <process ref="CProcessor"/> > > <setHeader headerName="CamelJmsDestinationName"> > > <constant>queue:///TOQUEUE?targetClient=1</constant> > </setHeader> > <setHeader > headerName="CamelJmsDestinationName"> > > <constant>queue:///REPLYQUEUE?targetClient=1</constant> > </setHeader> > <to uri="jms:TOQUEUE?replyTo=REPLYQUEUE"/> > > </split> > </when> > > <route> > <from uri="jms:REPLYQUEUE"/> > <aggregate strategyRef="aggregatorStrategy" completionSize="1" > completionTimeout="1000"> > <correlationExpression> > <header>JMSCorrelationID</header> > </correlationExpression> > </aggregate> > </route> > > <bean id="aggregatorStrategy" class="com.strategy"/> > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/aggregator-question-how-do-I-send-reply-back-to-the-requestor-tp5720377p5720382.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
