Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
It shows all the queue manager status by default, whether they are running or not.
To see individual queue manager status one can use m flag as below
Crtmqm QMTEST
Dspmq QMTEST
Checking whether messages reached the queue or not. This we can confirm by
checking the curdepth attribute of the local queue.
Curdepth how many messages are available in the queue at that point of time. Check
the queue attributes in below screen shot in alphabetical order.
A non zero value shows number of messages available.
Display qlocal(qname) curdepth --- shows only curdepth value of that particular queue.
Display qlocal(qname) curdepth maxdepth --- shows current number of messages as well
as maximum number of messages this queue can store.
This way amqsput application/program used to place message on queue and amqsget
application/program consumed the message.
APP1-QM1-QM2-APP2:
Send a message from QM1 to QMTEST queue manager.
Objects needed on QM1 (source) end:
Remote queue definition QM1.TESTMSG
Transmission queue definition QMTEST
Sender channel definition QM1.QMTEST
Objects needed on QMTEST (destination) end:
Take the local queue created, QMTEST.TESTMSG
Receiver channel definition QM1.QMTEST
Listener definition QM1.LSTR.12345
QM1 end:
Need a remote queue definition, which holds the details of destination queue and queue
manager.
Define qremote(name) rname(remoteqname) rqmname(remoteqmname)
xmitq(corresponding xmitq)
As QM1 is sending end, we need to create a sender channel definition in this queue
manager.
To talk about conname, it holds the destination queue manager host ipaddress or DNS
name & port number.
QMTEST End:
Local queue is already created.
Create a listener on that particular port at which sender channel is going to send
messages.
Create a receiver channel definition for the corresponding sender channel one.
All the required objects are created on both queue managers. Now start the sender
channel in QM1.