capabilities.work

MQ Send Message and Verify Depth

A 4-step recipe with IBM WebSphere. We can help you get access.

Recipe · 4 steps

MQ Send Message and Verify Depth

Send a message to an IBM MQ queue and verify the queue depth.

  1. Authenticate to the MQ REST API to obtain an LTPA token cookie for the subsequent requests.
  2. List queues on the queue manager filtered to the target queue name to confirm it exists before sending.
  3. Send a persistent text message to the target queue on the queue manager.
  4. Read the queue with status information enabled to confirm the current depth reflects the delivered message.
What you'll need to have ready
  • username: Username for MQ authentication.
  • password: Password for MQ authentication.
  • qmgrName: The queue manager name.
  • queueName: The target queue name.
  • messageBody: The text message payload to send.
For your developer

Arazzo workflow websphere:send-message-and-verify, 4 operations: login → listQueues → sendMessage → getQueue. Specs on APIs.io.