Using MQe administration messages and MQ PCF messages

PCF messages are administration messages used by MQ queue managers. SupportPac™ MS0B: "MQSeries® Java™ classes for PCF" contains Java code, which supplies PCF message support. This code is available as a free download, see MQe SupportPacs

If you download and install it, and put the com.ibm.mq.pcf.jar file on your ClassPath environment variable, you have access to Java classes, which can dynamically manipulate MQ resources. When PCF messages are combined with MQe administration messages, complete programmatic configuration of bridge resources, and corresponding resources on an MQe queue manager are possible. Example code contained in the examples.mqbridge.administration.programming.AdminHelperMQ class, used in conjunction with the examples.mqbridge.administration.programming.MQAgent demonstrates how to do this. This example code has been added to the examples.awt.AwtMQeServer program, such that clicking menu View->Connect local MQ default queue manager will:
  • Ensure that a bridge object exists, creating one as required.
  • Query properties from the default MQ queue manager.
  • Attempt to connect that queue manager to the currently running MQe queue manager.
  • Ensure a proxy object representing the default MQ queue manager exists, creating one if necessary.
  • Ensure an MQe client connection exists, and that a corresponding MQ server connection channel exists also, creating these resources if necessary.
  • Ensure a 'sync queue' exists on the MQ queue manager.
  • Ensure a transmit queue on MQ exists, and create if necessary.
  • Ensure a matching MQ transmit queue listener exists in the configuration of the current MQe queue manager, creating one if necessary.
  • Ensure all the bridge resources are started.
  • Ensure a test queue on the MQ queue manager exists, creating one if necessary.
  • Ensure a matching MQe bridge queue exists, which refers to that test queue.
  • Send a test MQeMQMsgObject to the test queue to make sure the configuration is working.
  • Get the test MQeMQMsgObject from the test queue to make sure the configuration is working.

Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.