Using ActiveMQ's js api, how do I specify a durable topic subscription?

141 Views Asked by At

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)

0

There are 0 best solutions below