PCF messages are administration messages used by WebSphere MQ queue
managers. A supportpac "MS0B: MQSeries Java classes for PCF'
supportpac" contains java code, which supplies PCF message support.
This code is available as a free download from the WebSphere MQ download site
at http://www.ibm.com/software/ts/mqseries/txppacs.
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 WebSphere MQ resources. When PCF messages are
combined with WebSphere MQ Everyplace administration messages, complete
programmatic configuration of bridge resources, and corresponding resources on
a WebSphere MQ Everyplace 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
demonstrate how to do this. This example code has been added to the
examples.awt.AwtMQeServer program, such that using
the view -> "Connect local MQ default queue manager" menu item
will:
- Ensure that a bridge object exists, creating one as required.
- Query properties from the default WebSphere MQ queue manager.
- Attempt to connect that queue manager to the currently running WebSphere
MQ Everyplace queue manager.
- Ensure a proxy object representing the default WebSphere MQ queue manager
exists, creating one if necessary.
- Ensure a WebSphere MQ Everyplace client connection exists, and that a
corresponding WebSphere MQ server connection channel exists also, creating
these resources if necessary.
- Ensure a 'sync queue' exists on the WebSphere MQ queue
manager.
- Ensure a transmit queue on WebSphere MQ exists, and create if
necessary.
- Ensure a matching WebSphere MQ transmit queue listener exists in the
configuration of the current WebSphere MQ Everyplace queue manager, creating
one if necessary.
- Ensure all the bridge resources are started.
- Ensure a test queue on the WebSphere MQ queue manager exists, creating one
if necessary.
- Ensure a matching WebSphere MQ Everyplace 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.
© IBM Corporation 2002, 2003. All Rights Reserved