How to define priority on a message?
Hi.
if I want messages on queues to be handled according to priority,
it seems like the only thing that works is to call:
Code:
jmsTemplate.setPriority
before each send with the required priority.
However, there is also a configuration on the AMQ broker:
prioritizedMessages
Code:
<destinationPolicy>
<policyMap>
<policyEntries>
<policyEntry queue=">" prioritizedMessages="true">
This seems to have no influence on anything from my testings.
Should this be used or is it enough to set the jms template?
thanks