Removing durable subscribers

Is it possible to "purge" durable subscriptions established by JMS clients ? Any APIs available for this ?

Here is the scenrio. My application has a unique ID. The application establishes durable subscribers to a few topics. The uniqe ID is used in the setClientID() of the topic connection. Based on the messages it receives, the application would create more durable subscribers . All the subscribers are

created off of the same topic connection object.

When I "uninstall" the application, I want to "unsubscribe" or "remove" all the subscriptions established by the application. All I know about the application is the Unique ID and I do not know the subscriber id of the individual durable subscribers.

So, my question is, is it possible to "remove" all the subscription created by the application given the client id used in the application ?

TopicSession.unsubscribe() wont work for me because I do not know the subscriber id.

Is there a "Management" API availabe to to this ?

[1046 byte] By [706529] at [2007-11-25 8:23:31]
# 1

There is no management API to do what you described.

The MQ administration utilities do have support for purging

and destroying durable subscribers though. See the

'Managing Durable Subscriptions' section of chapter 6 in

the MQ Administration Guide.

imqcmd list dur -d topicName

imqcmd purge dur -n durableName -c clientID

imqcmd destroy dur -n durableName -c clientID

hope this helps,

-isa

Guest at 2007-7-1 14:45:26 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...