Use the following steps to install a queue manager and a queue:
Create a default queue manager called mercury.queue.manager. At the command prompt in the window, enter the following command:
crtmqm -q mercury.queue.manager
The -q option specifies that this queue manager is the default queue manager.
Messages
tell you that the queue manager is created, and that the default WebSphere® MQ objects
are created.
Start the default queue manager. Enter the following
command:
strmqm
A message tells you when the queue manager
starts.
Enable MQSC commands by entering the following command:
runmqsc
The
message Starting MQSC for queue manager mercury.queue.manager is
displayed when the MQSC session starts. MQSC has no command prompt.
Define a local queue called ORANGE.QUEUE. Enter the following command in the MQSC commands window:
define qlocal(orange.queue)
Any
text entered in MQSC in lowercase is converted automatically to uppercase
unless you enclose it in single quotation marks. This means that, if you create
a queue with the name orange.queue, you must remember to
refer to it in any commands outside MQSC as ORANGE.QUEUE.
The message WebSphere MQ queue created is displayed
when the queue is created.
Stop MQSC. Enter the following command in the MQSC
commands window:
end
The following messages are displayed,
then the command prompt is displayed again:
One MQSC commands read.
No commands have a syntax error.
All valid MQSC commands were processed.
You have now defined the following objects:
A default queue manager called mercury.queue.manager