I am trying to write an application that can write messages to a queue with different priorities such that it might write a message with a low priority then one with a high priority then another with a medium priority. I then want another application to have the option of reading these off in priority order such that it would receive the messages in the order 2, 3, 1. The messages have nothing to do with each other so they are not being written within a group. I also do not want to force the receiving application to receive them in priority order so simply setting the MSGDLVSQ value is not an option although if this is set to PRIORITY then I do get them in the desired order which suggests to me that my processing is correct when I am putting the messages to the queue.
On the receiving side I am specifying MQGMO_LOGICAL_ORDER for the MQGET call but this does not work - can anyone tell me what I am doing wrong please.
Many thanks
Ivor
On the receiving side I am specifying MQGMO_LOGICAL_ORDER for the MQGET call but this does not work - can anyone tell me what I am doing wrong please.
Many thanks
Ivor