Show TOC

Queue ConfigurationLocate this document in the navigation structure

Use this sample code to call a queue manager, server queue, channel, and listener.

A standard MQ server configuration provides:
  • A default queue manager called queue.manager.1.
  • A local server queue called QUEUE1.
  • A Server-Connection channel called channel1.
  • A listener called listener1 on TCP/IP port 2001.
Create a default queue manager called queue.manager.1 and
start it:
crtmqm -q queue.manager.1
strmqm
dspmq # display list of active queues
Now create a local queue, a channel and a listener:
runmqsc
define qlocal(QUEUE1)
5
define channel (channel1) chltype (svrconn) trptype (tcp)
\
mcauser ('mqm')
define listener (listener1) trptype (tcp) control (qmgr) \
port (2001)
start listener (listener1)
end
Note In this configuration example, backslashes (\) are used for readability, and because of space constraints. When configuring queues in the system, keep this information on one line.