camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hadrian Zbarcea <>
Subject Re: camel processor in InOut to send 2 replies
Date Tue, 26 Feb 2013 17:35:42 GMT
Your question is not very clear, I could interpret it in a few ways. 
Your example seems to indicate an in-only, no reply pattern.

Firstly, you cannot do what you need with a request/reply pattern, so 
you certainly have something else. Since you use jms, you probably use a 
reply queue [1]. That is based on the standard JMSReplyTo header. What 
you'd have to do use is read that header and send the extra message(s) 
yourself. Sema if you need to send to a different queue, except you need 
to find a way to send across the 2nd reply queue name yourself.

I hope this helps,

[1] (read the Request-reply over JMS 

On 02/26/2013 11:59 AM, Marco Crivellaro wrote:
> Hi All,
> I have a requirement to send 2 messages in as reply of a request using InOut
> pattern.
> How can I achieve this?
> My route looks as following:
>    <camelContext id="hulkcontext"
> xmlns="" autoStartup="true">
>      <route>
>     		<from uri="jms:queue:data"/>
>     		<to uri="bean:myMessageProcessor"/>
>     		<inOut uri="mock:dataresult" />   		
> 	</route>
>    </camelContext>
> I've got a processor working properly when sending a single reply but in
> some situations 2 messages have to be sent.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

View raw message