Configuring Queues

The following sample code illustrates a standard MQ server configuration that provides:

• A default queue manager called queue.manager.1.

• A local server queue called QUEUE1.

• A 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 the configuration example above, backslashes (\) are used in lines due to space constraint. When configuring queues in the system, keep this information on one line.