This content has been marked as final.
Show 3 replies
-
1. Re: How do I reset DurableSubscriptionsCount
adrian.brock Dec 20, 2005 7:07 PM (in response to jdragon)What has closing the connection or restarting the server got to do with it?
If they are durable subscriptions, they survive. They are "DURABLE".
You need to read the spec!connection = connectionFactory.createConnection(); try { connection.setClientID(clientID); session = connection.createSession(false, AUTO_ACKNOWLEDGE); session.unsubscribe(subscriptionName); } finally { connection.close(); }
-
2. Re: How do I reset DurableSubscriptionsCount
jdragon Dec 20, 2005 7:53 PM (in response to jdragon)Thanks, so how do I manually remove these messages and the runaway references from past clients that haven't unsubscribed?
"adrian@jboss.org" wrote:
What has closing the connection or restarting the server got to do with it?
If they are durable subscriptions, they survive. They are "DURABLE".
You need to read the spec!connection = connectionFactory.createConnection(); try { connection.setClientID(clientID); session = connection.createSession(false, AUTO_ACKNOWLEDGE); session.unsubscribe(subscriptionName); } finally { connection.close(); }
-
3. Re: How do I reset DurableSubscriptionsCount
timdennison Feb 27, 2006 3:16 PM (in response to jdragon)Is there an MBean that will allow me to unsubscribe durable subscribers from the jmx console? If I can list the subscribers, seems to make sense that I can remove them as well.