You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Mikhail Lukyanov <lu...@gmail.com> on 2020/05/22 08:47:40 UTC

JMSPriority don't work when queues and topics written together in one policyEntry

With this config, messages are processed in order of arrival rather than
the priority.














*<policyEntry id="global_policy"
prioritizedMessages="true" queue=">"
reduceMemoryFootprint="true" topic=">">
<deadLetterStrategy>
<individualDeadLetterStrategy
enableAudit="true" expiration="0"
processExpired="false"
processNonPersistent="true"
queuePrefix="DLQ."                                topicPrefix="DLQ.Topic."
                              useQueueForQueueMessages="true"
useQueueForTopicMessages="true"/>
</deadLetterStrategy>                    </policyEntry>*
With this record without topic priority works













*<policyEntry id="global_policy"
prioritizedMessages="true" queue=">"
reduceMemoryFootprint="true">                        <deadLetterStrategy>
                          <individualDeadLetterStrategy
            enableAudit="true" expiration="0"
  processExpired="false"
processNonPersistent="true"
queuePrefix="DLQ."                                topicPrefix="DLQ.Topic."
                              useQueueForQueueMessages="true"
useQueueForTopicMessages="true"/>
</deadLetterStrategy>                    </policyEntry>*

ActiveMQ version 5.14.0

Can I specify queues and partitions in one record so that priority works or
need to be separated?

-- 
*With best regards, Lukyanov Mikhail*
*Tel: **+7-909-69-71-547*