<div dir='ltr'>Hi Steve, thanks for letting me know. Yes, I confirm that the following works:<div><br></div><div>SUBSCRIBE <br>destination:/topic/high.* <br>ack:client-individual <br>id:subscribe-03 <br>persistent:true </div><div><br></div><div>It worked via ncat, after further testing, I found a js bug in my consumer app that hang Chrome after a message was received.</div><div><br></div><div>Rgds,</div><div>Joshua</div><div><br><div><br><div><hr id="stopSpelling">Date: Tue, 14 Jan 2014 09:35:26 -0800<br>From: <a href="/user/SendEmail.jtp?type=node&node=32616&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a><br>To: <a href="/user/SendEmail.jtp?type=node&node=32616&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a><br>Subject: Re: Federation and Stomp<br><br>
Joshua,
<br><br>Emile has replied already, but I wanted to point out that RabbitMQ STOMP adapter
<br>doesn't support "client-id"s on CONNECT (they are ignored), instead just the
<br>destination (/topic/<name>) and the id are used to identify the subscription.
<br><br>You may have read about client-ids in ActiveMQ documentation.
<br><br>The SUBSCRIBE you showed us would create an exclusive auto-delete queue (not a
<br>shared one) and this would therefore get deleted when the subscriber disconnected.
<br><br>Try this:
<br><br>SUBSCRIBE
<br>destination:/topic/high.*
<br>ack:client-individual
<br>id:subscribe-03
<br>persistent:true
<br><br>^@
<br><br>and then use exactly the same subscription after reconnect to receive messages.
<br><br>You should UNSUBSCRIBE (see the doc) when this is no longer needed, or the
<br>queue may stay around for a long time.
<br><br>At present you cannot create a durable subscription to an /exchange/<x-name>/<r-key>
<br>destination.
<br><br>I hope this helps you: please let us know how you get on.
<br><br>Steve Powell [M: +44-7815-838-558; H:+44-1962-775-598; W:+44-2380-111-528]
<br> What I tell you three times is true.
<br>Lewis Carroll; Hunting of the Snark: Fit the First
<br><br>On 14 Jan 2014, at 05:08, joshua__lim <<a href="http:///user/SendEmail.jtp?type=node&node=32562&i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a>> wrote:
<br><br>> I read somewhere that says to create durable subscription for exchange, I'd
<br>> need to set the client-id header on the CONNECT and the id header to a
<br>> unique string and set persistent: true. This doesn't appear to work at this
<br>> moment as subscribed-clients will lose messages sent to the exchange if they
<br>> are not connected.
<br><br>_______________________________________________
<br>rabbitmq-discuss mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=32562&i=1" rel="nofollow" target="_blank" link="external">[hidden email]</a>
<br><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" rel="nofollow" target="_blank" link="external">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br>
<br>
<hr noshade="noshade" size="1" color="#cccccc">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif;">
<div style="font-weight:bold;">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://rabbitmq.1065348.n5.nabble.com/Federation-and-Stomp-tp20052p32562.html" target="_blank" rel="nofollow" link="external">http://rabbitmq.1065348.n5.nabble.com/Federation-and-Stomp-tp20052p32562.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;line-height:1.5em;">
To unsubscribe from Federation and Stomp, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
<a href="http://rabbitmq.1065348.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble:email.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble:email.naml-instant_emails%21nabble:email.naml-send_instant_email%21nabble:email.naml" rel="nofollow" style="font:9px serif;" target="_blank" link="external">NAML</a>
</div></div></div></div> </div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/Federation-and-Stomp-tp20052p32616.html">RE: Federation and Stomp</a><br/>
Sent from the <a href="http://rabbitmq.1065348.n5.nabble.com/">RabbitMQ mailing list archive</a> at Nabble.com.<br/>