mqitest

command
v5.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

This is a short sample to show how to call IBM MQ from a Go program.

The flow is to connect to a queue manager, open the queue named on the command line, put a message and then get it back. The queue is closed.

The program then subscribes to the topic corresponding to collecting activity trace for itself - this requires MQ V9.

Finally, it closes the subscription and target queue, and disconnects.

If an error occurs at any stage, the error is reported and subsequent steps skipped.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL