Set up the receiver server
After you have completed the task, Set up the sender server, follow these steps to set up the receiver server:
- Log in as a user in the mqm group.
- Create a default queue manager called venus.queue.manager by entering the following command:
crtmqm -q venus.queue.managerMessages tell you that the queue manager has been created, and that the default WebSphere MQ objects have been created.- To start the queue manager, type:
strmqmA message tells you when the queue manager has started.- Enable MQSC commands by typing:
runmqscA message tells you that an MQSC session has started. MQSC has no command prompt.- Define a local queue called ORANGE.QUEUE by entering the following command:
define qlocal (orange.queue)A message tells you when the queue has been created.- Define a listener by entering the following command:
If you do not specify the port that the listener should listen on, the default of 1414 is used. If you specified a port other than 1414 in step 7 of Set up the sender server, include the port parameter in the command, as shown below.
define listener (listener1) trptype (tcp) control (qmgr) port (port_number)Where
- port_number
- is the name of the port the listener should run on. This must be the same as the number used when defining your sender channel.
- Start the listener by entering the following command:
start listener (listener1)It is not recommended to start the listener in the background from any shell that automatically lowers the priority of background processes.
- Define a receiver channel with the following command:
define channel (first.channel) chltype (rcvr) trptype (tcp)A message tells you when the channel has been created.- End MQSC by typing:
endSome messages are displayed, followed by the prompt.
You have now defined the following objects:
- A default queue manager called venus.queue.manager
- A queue called ORANGE.QUEUE
- A receiver channel called FIRST.CHANNEL
Now to test communications between your sender and receiver workstations, see Testing communication between the servers.
Parent topic:
Verifying a server-to-server installation
hq10460_