We need to issue some MQ commands from a MB flow. The way to go is to send a PCF command, but I dont know how to create it. Any pointers ? Sebastian.
相关问题
- Websphere MQ C++ client crashes in VS2013- library
- Logs in WebSphere MQ
- JmsTemplate has no send timeout
- Not able to get response from IBM MQ using JMS app
- In RabbitMQ which is more expensive, multiple queu
相关文章
- ClassCastException: javax.naming.Reference cannot
- WCF / WebService to act as Listener for MQ Message
- EhCache Replication with Websphere MQ
- Get queues depth from java code
- Server binding mode to connect Websphere MQ7 witho
- MQRC_NOT_AUTHORIZED error while connecting to Webs
- What's the difference between an exit and a ca
- WMQ JMS API SSL Sun JDK and SSL_RSA_WITH_AES_128_C
To issue commands to an MQ Queue Manager via PCF messages you can look at the examples in /opt/mqm/samp/pcf/samples on *nix or where ever you have installed MQ. (On Windows try "C:\Program Files (x86)\IBM\WebSphere MQ\tools\pcf\samples").
To issue the commands 'from' broker you can use a Java compute node and use methods in the supplied Java package com.ibm.mq, for example sending a query to find out what queues are defined on a queue manager:
Alternatively you can put the PCF messages on the MQ queue (SYSTEM.ADMIN.COMMAND.QUEUE if you're on anything but z/OS) that the queue manager is listening for events on. You will then also need to define a 'reply to' queue in your message. You can do this from broker with an MQOutput node.
However that means you need to know the exact format of the PCF message that you want to send and what it's reply will look like, I think it is much easier to use the provided Java examples to do the message processing and formatting for you.