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 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 WebSphere MQ Intercommunication.
The Request sample programs put their own local queue manager name in the ReplyToQMgr field of messages 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 they process.