Deregistering with the broker

When a publisher that is registered with a broker no longer wants to publish information on a topic, it can use the Deregister Publisher command message to deregister with the broker. This message should be sent to the SYSTEM.BROKER.CONTROL.QUEUE. This command is described in Deregister Publisher.

This command can be used if the publisher registered with the broker explicitly using Register Publisher, or implicitly using Publish. A publisher cannot deregister if it chose not to register in the first place.

The application must specify one of the following:

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

You must also specify the name of the publisher's queue and queue manager.

The publisher registration must be deregistered by the same user that registered it originally, unless the deregistering application is allowed to put the message as the appropriate user (for example using alternate user authority to open the SYSTEM.BROKER.CONTROL.QUEUE for that user).