本文介绍了IBM MQ PCF命令来收集QAlias详细信息,例如目标基础对象名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找是否可以使用PCF命令收集名称以外的MQ对象详细信息.对于如果我想查看QAlias指向的位置或目标基础对象,我该如何生成PCF命令来完成此任务?

I was looking to see if there are ways to collect MQ object details other than names using PCF commands. For E.g. If I would like see where a QAlias is pointing to or the Target base object, how do I generate a PCF command to accomplish this??

推荐答案

使用Morag提供给您的链接中的信息,然后您需要执行以下操作:

Use the information in the link that Morag gave you and then you need to do something like:

agent = new PCFMessageAgent(qMgrName);
request = new PCFMessage(MQConstants.MQCMD_INQUIRE_Q);
request.addParameter(MQConstants.MQCA_Q_NAME, "*");
request.addParameter(MQConstants.MQIA_Q_TYPE, MQConstants.MQQT_ALIAS);
request.addParameter(MQConstants.MQIACF_Q_ATTRS,
                     new int [] { MQConstants.MQCA_Q_NAME, MQConstants.MQCA_BASE_NAME });
responses = agent.send (request);

这篇关于IBM MQ PCF命令来收集QAlias详细信息,例如目标基础对象名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 10:50