Design of the Get Reference Message sample (amqsgrma.c, AMQSGRM4)
The program logic is as follows:
- The sample is triggered and extracts the queue and queue manager names from the input trigger message.
- It then connects to the specified queue manager using MQCONN and opens the specified queue using MQOPEN.
- The sample issues MQGET with a wait interval of 15 seconds within a loop to get messages from the queue.
- If a message is a Reference Message, the sample checks the existence of the file that has been transferred.
- It then closes the queue and disconnects from the queue manager.
Parent topic:
The Reference Message sample programs
fg17450_