No subject


Sun Jun 17 23:12:48 BST 2012


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.


------=_Part_2064_20773516.1348496051907
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,<div><br></div><div>I'm trying to perform an RPC with RabbitMQ's STOMP a=
dapter. As the client lib I'm using the STOMP over WebSocket (<a href=3D"ht=
tps://github.com/jmesnil/stomp-websocket/">https://github.com/jmesnil/stomp=
-websocket/</a>)&nbsp;library.</div><div><br></div><div>From the documentat=
ion (<a href=3D"http://www.rabbitmq.com/stomp.html#d.tqd">http://www.rabbit=
mq.com/stomp.html#d.tqd</a>) 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:&nbsp;replyTo: '/reply-queue/amq.gen-w2jykNGp4DNDBADm3C4=
Cdx'). Still in my server-side client, I can reply to the message just by p=
ublishing a message to "/reply-queue/amq.gen-w2jykNGp4DNDBADm3C4Cdx".</div>=
<div><br></div><div>However, how do I get this reply it in my client code w=
here the RPC call was initiated? The documentation states "<span class=3D"c=
ode " style=3D"color: rgb(51, 51, 51); font-family: 'Courier New', Courier,=
 monospace; white-space: nowrap; line-height: 18px; ">SEND</span><span styl=
e=3D"color: rgb(85, 85, 85); font-family: Verdana, sans-serif; line-height:=
 18px; ">&nbsp;and&nbsp;</span><span class=3D"code " style=3D"color: rgb(51=
, 51, 51); font-family: 'Courier New', Courier, monospace; white-space: now=
rap; line-height: 18px; ">SUBSCRIBE</span><span style=3D"color: rgb(85, 85,=
 85); font-family: Verdana, sans-serif; line-height: 18px; ">&nbsp;frames&n=
bsp;</span><strong style=3D"color: black; font-weight: normal; font-family:=
 Verdana, sans-serif; line-height: 18px; "><em>must not</em></strong><span =
style=3D"color: rgb(85, 85, 85); font-family: Verdana, sans-serif; line-hei=
ght: 18px; ">&nbsp;contain&nbsp;</span><span class=3D"code " style=3D"color=
: rgb(51, 51, 51); font-family: 'Courier New', Courier, monospace; white-sp=
ace: nowrap; line-height: 18px; ">/temp-queue</span><span style=3D"color: r=
gb(85, 85, 85); font-family: Verdana, sans-serif; line-height: 18px; ">&nbs=
p;destinations (...)&nbsp;</span><span style=3D"color: rgb(85, 85, 85); fon=
t-family: Verdana, sans-serif; line-height: 18px; ">subscriptions to reply =
queues are created automatically."</span></div><div><div><br></div><div>So,=
 how do I subscribe to the reply-to queue? How can I get the results of RPC=
 calls?</div></div><div><br></div><div>Thanks in advance.</div><div><br></d=
iv>
------=_Part_2064_20773516.1348496051907--

------=_Part_2063_8114832.1348496051907--


More information about the rabbitmq-discuss mailing list