ibm mq - Logging MQ Messages -
i want log messages come mq queue database/file or logging queue , can not modify existing code. there methods implement kind of message logging utility act http sniffer? or maybe mq have built-in finctionality log messages?
thanks in advance ansers.
i think possible creating alias queue points topic.
assuming recv.q
queue application receives messages , processes.
1) first create topic, log.to.database
.
2) create alias queue alias.log.to.database
base object
set log.to.database
, set base type
topic
.
3) create local queue log.to.database.q
4) create durable subscription, sub.for.recv.q
points recv.q
destination.
5) create durable subscription sub.for.log.to.dabase
points log.to.database.q
destination
now sender application need put messages alias.log.to.database
. since alias queue points topic, messages gets published onto log.to.database
. topic have 2 subscriptions registered, both same message. consumer application continue work whereas new application can written process messages other subscription.
Comments
Post a Comment