[MQ 9.2.0 Jul 2020]

Working with topics

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

About this task

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. You can select individual topics from the list to work with.

[z/OS]You 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 shows the create button.
    2. Provide the required information for the topic you are creating. By default the minimum recommended properties are displayed for you to provide values for. You 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 shows the spanner icon next to the topic that you want to delete.
    2. In the Edit queue view, click Delete topic.
    3. Confirm that you 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 shows the spanner icon next to the topic that you want to edit.
    2. Click the Edit button shows the edit icon
    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, you must have at least one matching subscription. You can create a test subscription, if required:
    1. Click the topic you 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 Shows the Actions button and select Test topic.
      2. Click the Test button shows 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 shows the create button.
      3. Enter the message that you want to publish.
      4. Click the Put button shows the Put button. The message is written to all matching subscriptions.
  • To subscribe to a topic, see Working with subscriptions:
  • To view and edit authority records for a topic:
    1. Click the spanner icon shows the spanner icon next to the topic that you want to edit authority records for.
    2. Click the Security tab.
    3. Work with the authority records as described for queue manager authority records, see Working with queue manager authority records.