2

I am using ActiveMQ's amq.js to subscribe to topics in my client-side js. I do so via a call like this:

amq.addListener( clientID, "topic://topicName", updateListener );

... but I would like to specify that this topic subscription be durable.

How do I do that? I assume that I would add a ?propertyName=propertyValue query string on the end of the topic name, but I can't find documentation on what the appropriate property name and value would be.

(FYI, I am using ActiveMQ 5.8.0)

Eric
  • 1,414
  • 3
  • 16
  • 35
  • I know that there is some genius out there who knows the answer to this question ... I look forward to hearing from you. ;o) – Eric Nov 14 '16 at 14:23
  • do you find the solution? – frank Aug 22 '17 at 14:40
  • No, I sure didn't. – Eric Aug 22 '17 at 20:14
  • do you mean activemq ajax cannot create durable subscriber or just we don't find the solution? I come across your problem since I want to use it on jsp to receive message after jsp reopen – frank Aug 23 '17 at 13:09
  • I'm not sure ... I'll admit that we switched to using the STOMP Over WebSocket library to connect directly to ActiveMQ from the client and we don't seem to have issues with it ... though we're not creating durable topic subscriptions there, either: http://jmesnil.net/stomp-websocket/doc/ – Eric Aug 23 '17 at 20:36
  • thank you so much, you are so nice, I will study your sharing and hope to have a nice trip – frank Aug 24 '17 at 13:26

0 Answers0