Running the samples using remote queues on IBM i

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 we want to use. We must also set up a message channel between your two message queue managers; for information about how to do so, see Channel-exit programs for messaging channels.

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.

Parent topic: Sample programs on IBM i