Testing IBM MQ listener notifications

The task shows steps to test an IBM® MQ listener notification.

Before you begin

To test whether the listener is working as expected, can ensure both the listener, and the listener notification are enabled.

About this task

Each listener notification is linked to a specific flow service that you set up when adding the listener notification on the Execution Mode page. The listener receives the message from the topic and forwards it to the listener notification, which then directs it to the configured flow service. The message is transmitted through a document to the flow service.

Procedure

  1. Go to the Flow Service for which you want to test and click the View/Edit Pipeline icon. The pipeline variable page is displayed.
  2. Click Add Pipeline Variable.
  3. Provide details in the Pipeline Input page.
    • In the Name field, specify the name that was mentioned to the doc reference name when creating a listener notification.
    • In the Type field, select the document reference.
  4. Select the Document reference option.

    The signature includes all the available listener notification documents. Each notification generates two documents, one for the request and another for the reply. By selecting the request document, you can view its structure and understand how the message is transmitted.

  5. Map the fields as required for further processing.
  6. When the notification is successfully processed, the associated flow service is run.

What to do next

Go to the Monitor tab to check the flow service execution and the output. It displays whether the message is consumed and processed successfully.