ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Deregister subscriptions

Post new topic  Reply to topic
 Deregister subscriptions « View previous topic :: View next topic » 
Author Message
x061294
PostPosted: Thu Mar 02, 2006 4:23 am    Post subject: Deregister subscriptions Reply with quote

Acolyte

Joined: 05 Apr 2005
Posts: 62

In v5, and I believe carried through into v6, the user who deregisters a subscription has to be the user that subscribed.

Quote:
The message must be sent by the subscriber that registered the subscription in the first place.


However, the same doc states:

Quote:
There are other ways in which a subscription can be deregistered; these are listed below.
v The subscription expires because the expiry time has passed.
v A system administrator deregisters the subscription.


Other than going into the DB table and removing it, is anyone aware of a programatic way to deregister a subscription? And/or if this is a requirement that has been opened with IBM? We want to open the door to allowing app's to subscribe to topics that are of interest to them, within some level of controls, but, we also want the ability to clean up old subscriptions that were added but never removed by the user. I don't want to have to clean the database to make this happen, but instead, retrieve the list of subscriptions, determine which are no longer needed, and submit them to be dereg'd.

I realize that there are security implications regarding allowing one ID to remove another ID's subscriptions. But it seems like there should be a "sysadmin" ID that would allow this. But if there is, I don't know what it is/how it works.
Back to top
View user's profile Send private message
vk
PostPosted: Thu Mar 02, 2006 5:23 am    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Hi,

Once you have identified the subscriptions to be deregistered, you can send a message to the SYSTEM.BROKER.CONTROL.QUEUE. The psc folder in the MQRFH2 header should be populated with Command as DeregSub.

Topic, Queue and QueueManager can be set appropriately to deregister a particular subscriber.

Regards,
VK.
Back to top
View user's profile Send private message
x061294
PostPosted: Thu Mar 02, 2006 6:29 am    Post subject: Reply with quote

Acolyte

Joined: 05 Apr 2005
Posts: 62

That works, as long as you send the Dereg under the same ID as the subscribe. However, if you try this under a different ID, the broker returns an error. As we want individual subscribers to register and deregister on their own, or at least with the ID of the application that the user is using, this means that subscriptions will be registered with a variety of ID's. But, from the sysadmin side, there are times we want to clean up subscriptions that aren't valid anymore. I'm looking for a way to do that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Deregister subscriptions
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.