Set up the WebSphere MQ server

 

Before we can verify the client installation, we need to:

  1. Create a default queue manager (called queue.manager.1) by entering the following command at the command prompt:
    crtmqm -q queue.manager.1

    The -q option specifies that this queue manager is the default queue manager.

  2. Start the queue manager by entering the following command:
    strmqm

  3. Start MQSC commands by entering the following command:
    runmqsc
    MQSC does not provide a prompt, but responds with the message Starting MQSC for queue manager queue.manager.1.

  4. In the MQSC window, create a local queue called QUEUE1 by entering the following command:
    define qlocal(QUEUE1)

  5. In the MQSC window, create a server-connection channel by entering the following command:
    define channel(channel1) chltype(svrconn) trptype(tcp) mcauser(' ')

  6. Verification requires you to start the default WebSphere MQ listener on the port number that you specify when setting up the client-connection channel.

    By default the listener will listen on port 1414. If you are not going to change the default port when setting up the client workstation, no action is required, proceed to the next step. If you are going to use a different port when setting up the client workstation, alter the definition of the system.default.listener. For example, to use port 2001, enter the command in the MQSC window:

    alter listener(system.default.listener.tcp) trptype(tcp) port(2001)

    To check which ports are free enter the following command:

    netstat -an
    This will show you a list of running processes. Check the port number of each of the processes to see if the port you plan to use is already in use. The port number is in the Local Address column. The information is given in the form computer_name:port_being _used

  7. In the MQSC window, start the default WebSphere MQ listener by entering the following command:
    start listener(system.default.listener.tcp)

  8. In the MQSC window, verify the listener process has started by executing the command:
    display lsstatus(*)

  9. Stop MQSC by typing in the MQSC window:
    end
    and then pressing Enter.

The following objects are now defined:

 

Parent topic:

Verifying a WebSphere MQ Client