starting, MQSC, local queue, server-connection channel, example (not z/OS), stopping, channel, inetd setup, example (Windows), setting up the server, using Windows explorer" /> Set up the server on UNIX and Windows systems
Home

 

Set up the server on UNIX and Windows systems

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

Note:
We 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 Set 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

    Start a listener by entering the following command at the command prompt:

    RUNMQLSR -t tcp -m queue.manager.1

    On UNIX 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.

 

Set 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.

  • Create a default queue manager

    1. Open WebSphere MQ Explorer from the Start Menu.

    2. Right-click the folder called Queue Managers, select New, and select Queue Manager.

    3. In the first entry field, type the queue manager name, queue.manager.1.

    4. Select Make this the default queue manager.

    5. Click Next twice.

    6. Select Create Server Connection Channel.

    7. Click Next.

    8. Enter a port number of 1414 and click finish.

  • Create a local queue

    1. Expand the queue manager you have just created and right-click queues.

    2. Select New and select Local Queue.

    3. Enter the queue name, QUEUE1, and click Finish.

  • Define the server-connection channel

    1. Expand Advanced, and right-click Channels.

    2. Select New and select Server Connection Channel.

    3. Enter the channel name, CHANNEL1, and click Finish.

  • Run the listener

    The listener will have automatically started when the queue manager was set up. We can verify this by opening Listeners. The listener LISTENER.TCP will be running.



 

Home