🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
How can I use JMS Priority on a message? The priority isn’t applied by message.setJMSPriority().
Referring to JMS documentation here, you can see that client applications cannot use this method.
To set the priority of the message to be published, you can either configure a default priority value for the Producer: producer.setPriority(priorityLevel)
, or with producer.send(message, deliveryMode, priorityLevel
) to set it on a specific message during the publish.
Note that in order for priority ordering of messages to occur for the consumer, the Solace endpoint from which the messages are being received (Queue or Topic Endpoint) must have the setting “respect message priority” enabled. See these links for more information: