Extending the MQ bridge (examples.mqbridge.awt)

This package contains a set of classes that show how to use and extend the MQ bridge. Some of the examples extend other MQe examples.

AwtMQBridgeServer
This is an example of a graphical interface for the underlying examples.mqbridge.queuemanager.MQBridgeServer class.

The MQBridgeServer class source code demonstrates how to add bridge functionality to your MQe server program, following these guidelines.

To start the bridge enabled server:
  1. Instantiate the base MQe queue manager, and start it running.
  2. Instantiate a com.ibm.mqe.mqbridge.MQeMQBridges object, and use its activate() method, passing the same .ini file information as you passed to the base MQe queue manager.
The bridge function is then usable.
To stop the bridge-enabled server:
  1. Disable the bridge function by calling the MQeMQBridges.close() method. This stops all the current MQ bridge operations cleanly, and shuts down all the MQ bridge function.
  2. Remove your reference to the MQeMQBridges object, allowing it to be garbage-collected.
  3. Stop and close the base MQe queue manager.
ExamplesAwtMQBridgeServer.bat
This file provides an example of how to invoke the MQBridgeServer using the Awt server. It also shows how to control the initial settings of the AwtMQBridgeTrace module.
ExamplesAwtMQBridgeServer.ini
This file provides an example configuration file for a queue manager that supports MQ bridge functionality.

Terms of use | WebSphere software

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