PubPriority (MQLONG) for MQSD
This is the value that will be in the Priority field of the Message Descriptor (MQMD) of all publication messages matching this subscription. For more information about the Priority field in the MQMD, see Priority (MQLONG) for MQMD.
- MQPRI_PRIORITY_AS_Q_DEF
-
When a subscription queue is provided in the
Hobjfield in the MQSUB call, and is not a managed handle, then the priority for the message is taken from the DefPriority attribute of this queue. If the queue is a cluster queue or there is more than one definition in the queue-name resolution path then the priority is determined when the publication message is put to the queue as described for Priority (MQLONG) for MQMD.If the MQSUB call uses a managed handle, the priority for the message is taken from the DefPriority attribute of the model queue associated with the topic subscribed to.
- MQPRI_PRIORITY_AS_PUBLISHED
-
The priority for the message is the priority of the original publication. This is the initial value of the field.
If altering an existing subscription using the MQSO_ALTER option, the Priority of any future publication messages can be changed.
On return from an MQSUB call using MQSO_RESUME, this field is set to the current priority being used for the subscription.