Does WebSphere MQ support JMX API?

时间:2015-07-28 15:47:44

标签: java ibm-mq jmx

I have a requirement where I need to read the current configuration of WebSphere MQ (cluster config, queue managers, queues, channels, remote queue etc..., the works).
I need to write this tool in Java.
So is there a JMX API for WebSphere MQ that will allow me to read MQ configuration?
Is the config stored in a file (xml? or otherwise.) that I can read?

MQExplorer shows all the queues, queue managers etc... How does it do it? I am not really interested in queue depth etc... (don't want runtime info) just the config.

3 个答案:

答案 0 :(得分:1)

Oh boy. There's nothing as straight forward as a JMX API, or even XML. The only real way to get the data you're looking for (in Java) other than issuing command line requests and scraping the response is the Programmable Command Formats or PCF. It's the nastiest API I've ever had the displeasure of using, but it is, admittedly, very useful. There's a decent number of examples floating around (not from IBM mind you) but this one is the most comprehensive collection I've seen.

答案 1 :(得分:1)

IBM MQ产品附带了PCF Java示例。您可以在Windows上的<mq install>\Tools\pcf\samples下找到它们。有查询/创建/删除队列,通道的示例。这些样本绝对可以帮助您实现目标。

IBM MQ将配置信息存储在二进制文件,队列等中.PCF类是处理配置的最佳方式。

答案 2 :(得分:1)

Queuemetrix提供的代理可以满足您的需求。 http://www.queuemetrix.com/lamaxu

LAMAXU收集器是一个远程连接到IBM MQ的Java代理,以易于使用的格式公开其所有可用指标,几乎可以通过任何监控系统对其进行监控。

  1. JMX Mbeans(AppDynamics&amp; Solarwinds)
  2. HTTP REST(包含XML和JSON格式)
  3. 日志文件(XML或JSON格式的日志供SPLUNK使用)