Running the samples using remote queues
We 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 WebSphere MQ Intercommunications.
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.
Parent topic:
Sample programs (all platforms except z/OS)
fg17700_