examples.mqbridge.awt package

This package contains a set of classes that show how to use and extend the WebSphere MQ bridge. Some of the examples extend other WebSphere MQ Everyplace 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 WebSphere MQ Everyplace server program, following these guidelines.

To start the bridge enabled server:

  1. Instantiate the base WebSphere MQ Everyplace 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 WebSphere MQ Everyplace 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 WebSphere MQ bridge operations cleanly, and shuts down all the WebSphere MQ bridge function.
  2. Remove your reference to the MQeMQBridges object, allowing it to be garbage-collected.
  3. Stop and close the base WebSphere MQ Everyplace 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 WebSphere MQ bridge functionality.

Refer to the WebSphere MQ Everyplace Configuration Guide for more details about the WebSphere MQ bridge.