camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Request-Response with Producer/Consumer Templates
Date Tue, 08 Dec 2009 05:29:51 GMT
Hi

If you create a route on the server side, then Camel should take care
of it all. As it can detect the JMSReplyTo header and know where to
send the reply with the correlation id etc.



On Tue, Dec 8, 2009 at 1:39 AM, FCasale <fallfollower@hotmail.com> wrote:
>
>
> Thanks, I am much closer now... I'm just not sure how to set the
> correlationId for the reply message.
>
> It is coming back correlationId=null and is therefore ignored.
>
> On the server side I am trying this:
>
> --------------
>
> Exchange exch = consumer.receive("test-jms:queue:test.queue");
> Message msg = exch.getIn();
>
> producer.sendBodyAndHeader(msg.getHeader("JMSReplyTo").toString(), "Ho Ho",
> "JMSCorrelationId", msg.getHeader("JMSCorrelationId").toString());
>
> --------------
>
> So the message is replying on the correct temporary queue... but with no
> correlationId so the response message is being ignored....
>
> How do I set the correlationId on the response message?
>
> --
> View this message in context: http://old.nabble.com/Request-Response-with-Producer-Consumer-Templates-tp26635175p26686915.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message