jms-topic
JMS Application to send messages to Websphere MQ using Topic
Use command crtmqm
to create a queue manager called QMA as follows:
crtmqm QMA
Use strmqm
command to start the queue manager QMA as follow:
strmqm QMA
Start MQSC to disable the CHLAUTH
of a Queue Manager(QMGR) then stop MQSC as follows:
runmqsc QMA
ALTER QMGR CHLAUTH(DISABLED)
end
Start MQSC to define a local topic called MYTOPIC
with topic string called News
then stop MQSC as follows:
runmqsc QMA
define topic(MYTOPIC) topicstr(News) cluster(NEWCLUSTER)
display topic(MYTOPIC)
end
To get the message, Change into the MQ_INSTALLATION_PATH/samp/bin directory and execute the commands:
cd /opt/mqm/samp/bin/
./amqssub News QMA
References: