activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Using different consumer priorities in the same connection
Date Wed, 09 Jan 2008 22:20:45 GMT
On 09/01/2008, qwidjibo <qwidjibo22@hotmail.com> wrote:
>
>
> Hi All.
>
> I'd like to have many (potentially hundreds or more) message listeners in
> the same VM listening to different queues.
>
> The problem is that I'd like a number of those to be listening at different
> priorities. Looking at the JMS spec as well as the amq implementation, it
> looks like the consumer priority is established for the connection as a
> whole, not the individual session or subscription.
>
> Are there any ways around this? I can imagine engineering solutions (e.g.
> maintaining a set of connections , one for each priority level in use), but
> that seems likely to introduce a fair deal of unwanted complexity. My main
> concern here is bloating the number of threads in the AMQ instance
> itself...at it does have a habit of creating a few for each connection.

You can configure consumer priority on a per consumer basis using
destination URIs
http://activemq.apache.org/consumer-priority.html
-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message