Running the samples using remote queues

We can demonstrate remote queuing by running the samples on connected message queue managers.

Program AMQSAMP4 provides a local definition of a remote queue (SYSTEM.SAMPLE.REMOTE) that uses a remote queue manager named

OTHER. To use this sample definition, change

OTHER to the name of the second message queue manager you want to use. You must also set up a message channel between your two message queue managers; for information on how to do this, see the WebSphere MQ Intercommunication book.

The Request sample program puts its own local queue manager name in the MDRM field of messages it sends. The Inquire and Set samples send reply messages to the queue and message queue manager named in the MDRQ and MDRM fields of the request messages they process.