简体   繁体   中英

Hook on MQGET and MQPUT

When a message is dropped on a queue or removed from a queue, I would like to make an entry in a DB2 table. Is it possible to configure Websphere MQ with a hook on these operations?

Regards,

Yash

Yes, it is possible, you can configure API exit programs for the queue manager, which are executed by the queue manager when processing the MQI API operations.

The MQ install includes only sample API exit programs.

http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.ref.doc/q049280_.htm

What is the purpose? (of copying the messages to a DB)

Is it because you don't trust the sending and/or receiving application? Or do you not trust MQ? Or do you want a tool for finger-pointing? (blame-game)

Is it because the applications (sending or receiving) are NOT logging what they are doing?

If you are looking for a "message tracking solution" then there is a list of them at http://www.capitalware.com/mq_tools_comm.html#mqtrk

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM