Deregistering as a subscriber

When a subscriber no longer wants to receive publications on a topic, send the Deregister Subscriber command message to the broker's control queue. This command is described in Deregister Subscriber.

This tells the broker to stop sending publications, about the topics specified, to the subscriber.

An application must specify one of the following:

You must specify the stream name for these topics, unless it was the default (SYSTEM.BROKER.DEFAULT.STREAM).

You must also specify the name of the subscriber's queue and queue manager, unless they are the same as the reply-to queue and reply-to queue manager in the message descriptor of the command message. The subscription must be deregistered by the same user that registered it originally, unless the deregistering application is allowed to put the Deregister Subscriber message as the appropriate user (for example, using alternate user authority to open the SYSTEM.BROKER.CONTROL.QUEUE for that user and CorrelId).