The Request sample programs
The Request sample programs demonstrate client/server processing. The samples are the clients that put request messages on a target server queue that is processed by a server program. They wait for the server program to put a reply message on a reply-to queue.
The Request samples put a series of request messages on the target server queue using the MQPUT call. These messages specify the local queue, SYSTEM.SAMPLE.REPLY as the reply-to queue, which can be a local or remote queue. The programs wait for reply messages, then display them. Replies are sent only if the target server queue is being processed by a server application, or if an application is triggered for that purpose (the Inquire, Set, and Echo sample programs are designed to be triggered). The C sample waits 1 minute (the COBOL sample waits 5 minutes), for the first reply to arrive (to allow time for a server application to be triggered), and 15 seconds for subsequent replies, but both samples can end without getting any replies. See Features demonstrated in the sample programs for the names of the Request sample programs.
- Running the amqsreq0.c, amqsreq, and amqsreqc samples
- Running the amq0req0.cbl sample
- Running the AMQSREQ4 sample
- Running the AMQ0REQ4 sample
- Running the Request sample using triggering
- Design of the Request sample program
Parent topic:
Sample programs (all platforms except z/OS)
fg17460_