Queues in priority sequence
The first message in a queue in this sequence is the message that has been on the queue the longest and that has the highest priority at the time that the MQOPEN call is issued.
Use MQGMO_BROWSE_NEXT to read the messages in the queue.
The browse cursor points to the next message, working from the priority of the first message to finish with the message at the lowest priority. It browses any messages put to the queue during this time as long as they are of priority equal to, or lower than, the message identified by the current browse cursor.
Any messages put to the queue of higher priority can be browsed only by:
- Opening the queue for browse again, at which point a new browse cursor is established
- Using the MQGMO_BROWSE_FIRST option
Parent topic:
The browse cursor
fg12860_