Setting up the server on UNIX and Windows systems

This section does not apply to i5/OS or z/OS(R). For information about setting up the server on these platforms, see the sections that follow.

Note:
You can use the WebSphere MQ Explorer as well as the command line to carry out most WebSphere MQ tasks. Details of how to use WebSphere MQ Explorer for the verification example are given in Setting up a Windows server using WebSphere MQ Explorer.

Create a directory to hold working files, for example mqverify, and make this the current directory. Then follow the steps below to set up the server workstation.

  1. Create a default queue manager (called queue.manager.1) by entering the following command at the command prompt:
    crtmqm -q queue.manager.1
  2. Start the queue manager by entering the following command:
    strmqm
  3. Start WebSphere MQ Script (MQSC) Commands by entering the following command:
    runmqsc
    MQSC does not provide a prompt, but responds with the message:
    Starting MQSC for queue manager qmname.
    where qmname is the name of the queue manager.
  4. Create a local queue by entering the following command:
    DEFINE QLOCAL(QUEUE1)
  5. Create a server-connection channel by entering the following command:
    DEFINE CHANNEL(CHANNEL1) CHLTYPE(SVRCONN) TRPTYPE(TCP) MCAUSER(' ')
    See Access control for information about MCAUSER.
  6. Stop MQSC by typing end and then Enter.
  7. Configure the system to start channels
    On Windows(R)
    Start a listener by entering the following command at the command prompt:
    RUNMQLSR -t tcp -m queue.manager.1
    On UNIX(R) systems
    Use one of the following methods:
    • Start a listener by entering the following command:
      RUNMQLSR -t tcp -m queue.manager.1
    • Or, configure the inetd daemon to start the MQI channels. See WebSphere MQ Intercommunication for details of how to do this.

Setting up a Windows server using WebSphere MQ Explorer

Create a directory to hold working files, for example mqverify, and make this the current directory. Then follow the steps below to set up the server connection.