Home

 

Registering as a subscriber

Subscriber applications need to register their interest in receiving publications with a broker. Before we can define an application as a potential subscriber, set up the necessary security authorization to enable the application to do the following:

Send the Register Subscriber command message to the SYSTEM.BROKER.CONTROL.QUEUE to register as a subscriber. This command is described in Register Subscriber.

Your application should send this message to a broker's control queue (see Broker queues). to indicate that it wants to subscribe to the topics specified in the message. Alternatively, an application can send this message to register on behalf of another application that wants to subscribe. If an application subscribes on behalf of another application, the user ID of the subscribing application is used. The application needs alternate user authority if a different user ID is used. An application that has already registered as a publisher can also register as a subscriber.

An application can register with the same broker more than once, and can also register with many different brokers.

When a subscriber has registered with a broker, the subscription is persistent and survives broker and queue manager restarts, regardless of the persistence of the Register Subscriber command message.

When a subscriber registers with the broker, it must specify the topics that it is interested in. It can specify the name of more than one topic, and it can also use wildcards to specify a range of topics (described in Topics). If a subscriber has many (different) registrations that match the topic of a publication, only one copy of the publication is sent to it.



 

Home