In order to verify your installation you must first perform this
task. From a shell window, use these steps to install a queue manager and
a queue on the server:
- Create a default queue manager called saturn.queue.manager by
entering the following command:
crtmqm -q saturn.queue.manager
You will see messages telling you that the queue manager has been
created, and that the default WebSphere® MQ objects
have been created.
- To start the queue manager, type:
strmqm
A message tells you when the queue manager has started.
- Enable MQSC commands by typing:
runmqsc
A message tells you that an MQSC session has started. MQSC has
no command prompt.
- Define a local queue called QUEUE1 by entering
the following command:
define qlocal (queue1)
A message tells you when the queue has been created.
- Define a server-connection channel by entering
the following command on one line:
define channel (channel1) chltype (svrconn) trptype (tcp) mcauser ('mqm')
A message tells you when the channel has been created.
- Define a listener by entering the following command:
Note: If
you do not specify the port that the listener should listen on, by omitting
the port parameter from the command below, the default of 1414 is
used. If you want to specify a port other than 1414, you must include the
port parameter in the command, as shown.
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 client-connection channel in Setting up the client workstation.
- Start the listener by entering the following command:
start listener (listener1)
- Stop
MQSC by typing:
end
You
will see some messages, followed by the command prompt.
You have now defined the following objects on the server:
- A default queue manager called saturn.queue.manager
- A local queue called QUEUE1
- A server-connection channel called CHANNEL1