Work with topics

We can use the IBM MQ Console to add and delete topics, and view and set the properties of a topic.


The topics view lists the topics that exist for a specific queue manager. You access the topics list by clicking on a queue manager and selecting the Topics tab. We can select individual topics from the list to work with.

We cannot view or edit authority records for a topic on z/OS .


Procedure

  • To add a topic:
    1. In the Topics tab, click the create button .
    2. Provide the required information for the topic we are creating. By default the minimum recommended properties are displayed for you to provide values for. We can view all of the available properties by selecting Show all available options.
    3. Click Create. The new topic is created.

  • To delete a topic:
    1. Click the spanner icon next to the topic that we want to delete.
    2. In the Edit queue view, click Delete topic.
    3. Confirm that we want to delete the topic by clicking Delete. The topic is deleted.

  • To view and edit the properties of a topic:
    1. Click the spanner icon next to the topic that we want to edit.
    2. Click the Edit button
    3. Edit the properties as required. If the property text box is disabled, the property is read-only, or can be edited only from the command line. For information about the properties, see Topic properties in the MQ Explorer documentation.
    4. Click Save to save your changes.

  • To publish a message on a topic, we must have at least one matching subscription. We can create a test subscription, if required:
    1. Click the topic we want to publish to in the topic list.
    2. Your next action depends if this topic has any matching subscriptions: If there are no matching subscriptions:
      1. Click the Actions button and select Test topic.
      2. Click the Test button . A test message is written to a test subscription.

      If there are matching subscriptions for the topic:

      1. Click on a subscription name.
      2. Click the Create button .
      3. Enter the message that we want to publish.
      4. Click the Put button . The message is written to all matching subscriptions.

  • To subscribe to a topic, see Work with subscriptions:
  • To view and edit authority records for a topic:
    1. Click the spanner icon next to the topic that we want to edit authority records for.
    2. Click the Security tab.

Parent topic: Work with IBM MQ objects