Design of the Get Reference Message sample (amqsgrma.c, AMQSGRM4)

 

The program logic is as follows:

  1. The sample is triggered and extracts the queue and queue manager names from the input trigger message.

  2. It then connects to the specified queue manager using MQCONN and opens the specified queue using MQOPEN.

  3. The sample issues MQGET with a wait interval of 15 seconds within a loop to get messages from the queue.

  4. If a message is a Reference Message, the sample checks the existence of the file that has been transferred.

  5. It then closes the queue and disconnects from the queue manager.

 

Parent topic:

The Reference Message sample programs


fg17450_