activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cobrien <>
Subject Re: Priority message
Date Mon, 14 Jun 2010 19:40:59 GMT

I can't say much not knowing your use cases but perhaps  deploying  a
multiple queue architecture  might meet your requirements better then
relying on queue priority. see on flow control.  

The JMS spec does not require messages to be delivered strictly in order of
priority and most JMS implementations  don't allow one to make assumptions
on the order of delivery other then high priority messages generally are
delivered before low priority messages. 
The  JMS spec reads:
"JMS does not require that a provider strictly implement priority ordering
of messages; however, it should do its best to deliver expedited messages
ahead of normal messages."

This gives providers room for implementations that don't starve out low
priority messages but results in a degree of unpredictability.



astlm wrote:
> Thank you very much for your reply. 
> But these optios are not valid for my system.
> I need order message by priority on real time and I have only one consumer
> because the consumer send message another sistem wich it´s very slow.
> Any other idea? 
> When does active-mq  implement the management of priorities from queue? 
> This are ok on next versions?
> Thank you.
> James.Strachan wrote:
>> On 14 June 2010 12:52, astlm <> wrote:
>>> Hello,
>>> I'm starting to use ActiveMQ v5.3.2 and I need to prioritize messages
>>> sent
>>> whith several priorities.
>>> I modify configuration´s brokers like this
>>>    <broker useJmx="true" useShutdownHook="false"
>>> supportJMSPriority="true">
>>> And I  establish message and sender priority
>>>     message.setJMSPriority(priority)
>>>     sender.setPriority(priority)
>>> But activemq delivers message without priority.
>>> I see and I would like
>>> knowing if the error is solved.
>>> How can I use priority with activemq?
>> There's an FAQ entry that describes the various options...
>> -- 
>> James
>> -------
>> Open Source Integration

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message