[rabbitmq-discuss] RabbitMQ STOMP Adapter - How to get the RPC reply messages?
eduardo.pinheiro at muzzley.com
Tue Sep 25 19:00:36 BST 2012
Looking forward for an answer.....
On Monday, September 24, 2012 3:14:11 PM UTC+1, Tiago Alves wrote:
> I'm trying to perform an RPC with RabbitMQ's STOMP adapter. As the client
> lib I'm using the STOMP over WebSocket (
> https://github.com/jmesnil/stomp-websocket/) library.
> From the documentation (http://www.rabbitmq.com/stomp.html#d.tqd) I see
> that I have to set the reply-to header. I've done that by specifying
> something like "reply-to: /temp-queue/foo" and I saw in my server-side
> client (node-amqp) that the replyTo header is set correctly
> (example: replyTo: '/reply-queue/amq.gen-w2jykNGp4DNDBADm3C4Cdx'). Still in
> my server-side client, I can reply to the message just by publishing a
> message to "/reply-queue/amq.gen-w2jykNGp4DNDBADm3C4Cdx".
> However, how do I get this reply it in my client code where the RPC call
> was initiated? The documentation states "SEND and SUBSCRIBE frames *must
> not* contain /temp-queue destinations (...) subscriptions to reply queues
> are created automatically."
> So, how do I subscribe to the reply-to queue? How can I get the results of
> RPC calls?
> Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss