activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From y7mn2 <tonyto...@gmail.com>
Subject Re: Future support for message priority in ActiveMQ?
Date Tue, 27 Nov 2007 03:35:52 GMT



> 
> Just pop the resequencer in between the producer and consumer queue;
> then you can finely control how the priority ordering works etc. e.g.
> you can use complex expressions/rules for sorting things etc. Such as
> using JMSPriority first, then by some other header.
> 
> In Camel...
> 
> from("activemq:producerQueue").
>   resequencer(header("JMSPriority"), header("MyHeader")).
>   to("activemq:consumerQueue");
> 
 

Hi James, 

regarding the resequencer above. Does it actually re-sort the message
already in cosumerQueue?
For example: Msg A(priority=2), B(p=6), C(p=8) then those 3 messages will be
sort and put it back onto
consumerQueue in this order: Msg C, B, A...

and if there is another 3 more message comes in like Msg D (p=5), E(8) and
F(2), will the consumerQueue resort to: Msg C, E, B, D, A, F? or Msg C, B,
A, E, D, F?


Cheers,

-Tony 
-- 
View this message in context: http://www.nabble.com/Future-support-for-message-priority-in-ActiveMQ--tf3839194s2354.html#a13964167
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message