I'm trying to implement message prioritization using the JMS plugin with Active MQ. I created a "high-priority" template in Config.groovy as follows:
parentBean = 'standardJmsTemplate'
explicitQosEnabled = 'true'
priority = 10
... and I use that template when sending high priority messages. I've confirmed that the messages are queued with the correct value set for their priority.
Unfortunately, it looks like ActiveMQ does NOT enable priority-based de-queuing by default. (See here). So it looks like I need to set a property on the default policy to enable this.
This post describes how to set per-destination properties programmatically. Can someone help me out with the Config DSL syntax necessary to set the "prioritizedMessages" property on the default policy to true?