Running the samples using remote queues

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

Program amqscos0.tst 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 queue manager that you want to use. You must also set up a message channel between your two queue managers; for information on how to do this, see Defining the channels.

The Request sample programs put their own local queue manager name in the ReplyToQMgr field of messages that they send. The Inquire and Set samples send reply messages to the queue and message queue manager named in the ReplyToQ and ReplyToQMgr fields of the request messages that they process.