Hi, I want to have a thing where you can subscribe to a topic as a durable subscriber. Then afterwards you get the messages whenever, and when you don't want to get any more messages, you can unsubscribe.
I have all this working fine, but if you then try to connect with the same subscription ID you used (=the one you unsubscribed with), you automatically recreate the subscription again. I want it instead to tell me that I don't have an active subscription, and certainly not create the subscription again. So, as I have it now: -create sub => ok, sub is created -get messages => ok, messages are gotten -unsub => ok, sub is removed and messages aren't received -get messages => sub is recreated and future messages will be delivered But the way I want it is: -create sub => ok, sub is created -get messages => ok, messages are gotten -unsub => ok, sub is removed and messages aren't received -get messages => you don't have a sub, go away Is there a way to connect to AMQ and try to read a topic, without automatically creating the subscription if I don't have one yet? Or, barring that, at least check in advance if I actually have a subscription before I try reading it? Best regards, Kris -- View this message in context: http://activemq.2283324.n4.nabble.com/Avoid-always-creating-a-subscription-to-a-topic-when-connecting-as-durable-subscriber-tp4718372.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.