Set up a sender workstation
To set up the sender machine...
- Create a default queue manager called QMA....
crtmqm -q QMA- Start the default queue manager...
strmqm- Start MQSC...
runmqsc- Create a transmission queue called QMA...
define qlocal(QMA) usage(xmitq)- 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.
- On the receiver workstation, open a new command window and check which ports are free...
netstat -anThis 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.
- 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.
- In the MQSC command window, stop MQSC. Stop MQSC...
end
You have now defined the following objects:
- A default queue manager called QMA
- A transmission queue called QMA
- A remote queue called LOCAL.DEF.OF.REMOTE.QUEUE
- A sender channel called QMA.QMB
Parent topic:
Verifying a server-to-server installation