PCF messages are administration messages used by MQ queue managers. This SupportPac™ contains Java™ code,
which supplies PCF message support.
If you download
and install it, and put the
com.ibm.mq.pcf.jar file on your
class path 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 selecting 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 that 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 that a sync queue exists on the MQ queue manager.
- Ensure that a transmit queue on MQ exists, and create if necessary.
- Ensure that a matching MQ transmit queue listener exists in the configuration
of the current MQe queue manager, creating one if necessary.
- Ensure that all the bridge resources are started.
- Ensure that a test queue on the MQ queue manager exists, creating one
if necessary.
- Ensure that 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.