Set up a sender workstation

 

To set up the sender machine...

  1. Create a default queue manager called QMA....
    crtmqm -q QMA

  2. Start the default queue manager...
    strmqm

  3. Start MQSC...
    runmqsc

  4. Create a transmission queue called QMA...
    define qlocal(QMA) usage(xmitq)

  5. Create a local definition of the remote queue...
    define qremote(local.def.of.remote.queue) rname(apple.queue) rqmname('QMB') xmitq(QMA)

    rname is the name of the queue on the remote machine to which the message will be sent. In this case, APPLE.QUEUE.

  6. On the receiver workstation, open a new command window and check which ports are free...
    netstat -an
    This will show you a list of running processes. Check the port number of each of the processes to see if port 1414 is in use, this can be found by looking in the Local Address column. The information is given in the form ip_address:port_being _used.

    If port 1414 is not in use, use 1414 as the port number in step 7 and as the port for your listener later in the verification. If it is in use, select an alternative port that is not in use, for example 1415 if this is not being used by another process.

  7. On the sender workstation, in the MQSC command window, define a sender channel. Enter the following command:
    define channel(QMA.QMB) chltype(sdr) conname("con-name(port)") xmitq(QMA) trptype(tcp)
    Where:

    con-name

    is the TCP/IP address of the receiver workstation.

    port

    is the port on which the listener will be running on the receiver machine, the default value is 1414.

  8. In the MQSC command window, stop MQSC. Stop MQSC...
    end

You have now defined the following objects:

 

Parent topic:

Verifying a server-to-server installation