On Thu, May 29, 2014 at 9:15 AM, Tomas <[email protected]> wrote:
> Hi guys,
> I am pretty new in Camel... I'd like to implement a simple Request/reply for
> messaging with this behavior:
>
> 1. Requestor sends a message to a queue
> 2. Replier listens on the queue, gets asynchronously the message and replies
> to JMSReplyTo header of the message
> 3. Requestor receives the reply
>
> I've got this code:
>
> from("jms:queue:MyQ").setExchangePattern(ExchangePattern.InOut).to("jms:queue:MyQ");
>
Camel will automatic send back a reply if a JMSReplyTo header is included.
So all you need to do is
from("jms:queue:MyQ")
.. do somethere here to process and set a response you want
> 1. and 2. works fine, the requestor sends the msg to MyQ (without any
> setting of the headers on the app level), and the repliers gets the msg from
> MyQ with set JMSCorrelationID and JMSReplyTo by Camel.
>
> The problem is that JMSReplyTo is not know to the requestor, so it cannot
> wait on the temp queue for the reply...
>
> Is there a solution?
>
> Thank you
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Request-reply-JMS-ActiveMQ-tp5751686.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/