Tutorial 3: Sending a message on a client-server configuration

A tutorial to set up messaging between client and server machines, sending a message from the client, and verifying its receipt.

Before you begin

This tutorial builds upon IBM® WebSphere® MQ objects that have been set up during the previous tutorial - you need to complete Tutorial 2: Sending a message to a remote queue first.

Before starting this tutorial, you need to find out the name which identifies the server which hosts queue manager QM_ORANGE on the network from your system administrator.

You are currently in the IBM WebSphere MQ Explorer help. To grant the client the access rights to put messages on to a queue, see Preparing and running the sample programs in the IBM online IBM WebSphere MQ product documentation.

About this task

A visual summary of this tutorial. For more information, see the first page of the tutorial

This tutorial shows you how to set up messaging between client and server machines. From the client machine, you put a message on queue manager QM_ORANGE, which is hosted on a server machine. QM_ORANGE sends the message to Q1 on QM_APPLE, which is hosted on another server machine.
Important: This tutorial shows you how to work with a client-server installation, where the client is a third machine with WebSphere MQ Client installed, and the server is the machine which has the queue manager QM_ORANGE defined on it.

You set up the server by creating a server-connection channel. You then set up the client by defining the MQSERVER environment variable. Finally, you put a test message from the Client onto QM_ORANGE which sends it to queue Q1 on QM_APPLE and you verify that the message was sent.

When you have completed this tutorial, you should have a basic understanding of how to set up messaging on a WebSphere MQ MQI client-server configuration.