An MQ bridge queue definition can contain the following attributes.
Property | Explanation |
---|---|
Alias names | Alternative names for the queue |
Authenticator | Must be null |
Class | Object class |
Client connection | Name of the client connection service to be used |
Compressor | Must be null |
Cryptor | Must be null |
Expiry | Passed to transformer |
Maximum message size | Passed to the rules class |
Mode | Must be synchronous |
MQ queue manager proxy | Name of the MQ queue manager to which the message should first be sent |
MQ bridge | Name of the bridge to convey the message to MQ |
Name | Name by which the remote MQ queue is known to MQe |
Owning queue manager | Queue manager owning the definition |
Priority | Priority to be used for messages, unless overridden by a message value |
Remote MQ queue name | Name of the remote MQ queue |
Rule | Rule class used for queue operations |
Queue manager target | MQ queue manager owning the queue |
Transformer | Name of the transformer class that converts the message from MQe format to MQ format |
Type | MQ bridge queue |
More detail of each property can be found in the Java Programming Reference, in the administration class com.ibm.mqe.mqbridge.MQeMQBridgeQueueAdminMsg.
Example code which manipulates a bridge queue can be found in the Java™ class examples.mqbridge.administration.programmingAdminHelperBridgeQueue.
MQ bridge queues are synchronous only. Asynchronous applications must therefore use either a combination of MQe store-and-forward and home-server queues, or asynchronous remote queue definitions as an intermediate step when sending messages to MQ bridge queues.
Applications make use of MQ bridge queues like any other MQe remote queue, using the putMessage, browseMessages, and getMessage methods of the MQeQueueManager class. The queue name parameter in these calls is the name of the MQ bridge queue, and the queue manager name parameter is the name of the MQ queue manager. However, in order for this queue manager name to be accepted by the local MQe server, a connection definition with this MQ queue manager name must exist with null for all the parameters, including the channel name.
Administration of the MQ bridge is handled in the same way as the administration of a normal MQe queue manager, through the use of administration messages. New classes of messages are defined as appropriate to the queue.