Thanks for your response
I'm using ActiveMQ 5.1.0 and my code is:
conn = factory.createTopicConnection();
conn.setClientID("myTestClientId");
conn.start();
sess = conn.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
topic = sess.createTopic("events/" + config.getName());
subscriber = sess.createDurableSubscriber(topic, "myTestSubscription");
subscriber.setMessageListener(this);
// sess.unsubscribe("myTestSubscription");
for unsubscribing I uncomment last line and comment 2 lines before that
line, after I'm executing this code again and it recieves old messages :-(
IMHO it's a bug, what do you think?
--
View this message in context: http://www.nabble.com/Durable-subscriber-unsubscribe-question-tp18542883p18548421.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
|