Verify a WebSphere MQ Client

 

We can verify your WebSphere MQ client and server installation using the supplied sample put and get programs. These verify that your installation has been completed successfully and that the client and server can communicate.

This section explains how to use the supplied sample put and get programs to verify that a WebSphere MQ client has been installed correctly, by guiding you though the following tasks:

  1. "Setting up the WebSphere MQ server"

  2. "Setting up the WebSphere MQ client"

  3. "Putting a message on the queue"

  4. "Getting a message from the queue"

  5. "Post verification tasks"

These instructions assume that the WebSphere MQ Server feature is installed on a server machine, and that the WebSphere MQ client feature in installed on a client machine.

The transmission protocol used in the example is TCP/IP. It is assumed that you have TCP/IP configured on the server and the WebSphere MQ client machines, and that it is initialized on both the machines.

If you are not using TCP/IP, refer to the information about configuring communication links in WebSphere MQ Clients.

Compiled sample amqsputc and amqsgetc are included in the WebSphere MQ client directories that you installed.

The following sections provide step-by-step instructions for creating a queue manager called queue.manager.1, a local queue called QUEUE1, and a server-connection channel called CHANNEL1 on the server. They show how to create the client-sever channel on the WebSphere MQ client workstation, and how to use the sample programs to put a message onto a queue, and then get the message from the queue.

WebSphere MQ object definitions are case-sensitive. You must type the examples exactly as shown.

 

Parent topic:

Installing the WebSphere MQ Client