You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Qwerty777 <ic...@gmail.com> on 2009/03/04 04:05:37 UTC

Recommended way to handle message priority with a single resource

Hello,

I read this FAQ:
http://activemq.apache.org/how-can-i-support-priority-queues.html

However, I do not like either of the solutions. First one seems to imply
that I have to have consumers dedicated to each priority. Second one implies
that I can only rearrange the order once as I put them through some
reordering Q of some sort. Please let me know if my interpretation is wrong.

Here's what I want to be able to do:
- Have X number of resources all handle high and low priority messages.
- Since JMS message priority is not implemented for ActiveMQ, I was thinking
if using Y queues, each queue to handle a single priority level.
- A consumer will go through each queue, in a specific order which implies
the priority level (highest priority will be looked at first).
- Until it finds a message, it will keep on checking the next queue which a
lower priority.

Currently I use DefaultMessageListenerContainer, but I believe that's tied
to one queue. Is there an easy way to do something like the above? Of
course, if I had lots of resources, I can just use a different farm for each
priority, but such is not the case.

Thank you very much,
Koichi
-- 
View this message in context: http://www.nabble.com/Recommended-way-to-handle-message-priority-with-a-single-resource-tp22322762p22322762.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.