Setting up the client using IBM WebSphere MQ Explorer

You can use IBM® WebSphere® MQ Explorer to define the client-connection if you are setting up the client and server on the same workstation on a Windows or Linux® system.

Procedure

  1. Select the queue manager, QUEUE.MANAGER.1
  2. Open the Channels folder, then right click Client Connections > New > Client-connection Channel...
  3. Enter the channel name, CHANNEL1, for the client connection, and click Next.
  4. Enter the queue manager name, QUEUE.MANAGER.1
  5. Enter the following string as the connection name:
    server-address(port)
    
    Where:
    • server-address is the TCP/IP host name of the server
    • port is the TCP/IP port number the server is listening on
  6. Click Finish.
  7. From the command line, set the MQCHLLIB environment variable:
    • For Windows clients, enter the following command, where MQ_INSTALLATION_PATH represents the high-level directory in which IBM WebSphere MQ is installed:
      SET MQCHLLIB=MQ_INSTALLATION_PATH\qmgrs\QUEUE!MANAGER!1\@ipcc
      
    • For Linux clients, enter the following command:
      export MQCHLLIB=var/mqm/qmgrs/QUEUE!MANAGER!1/@ipcc
      
    Note: The queue manager name contains .. IBM WebSphere MQ creates the queue manager directory with the name, QUEUE!MANAGER!1

What to do next

Use the sample programs to test communication between the client and server. See Testing communication between a client and a server.