activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Confused about JMSPriority
Date Mon, 26 Feb 2007 08:04:41 GMT
Using selectors is usually a better way of shaping traffic than JMSPriority.

On 2/25/07, Stefan Arentz <> wrote:
> I'm confused about JMSPriority. My use case is simple:
> I have a bunch of fast servers that need to process slow (1 - 5
> second) jobs. I also have many slow servers for batch processing. All
> of these servers take jobs from the same queue.
> The slow servers use a selector like "type == BATCH" so they only take
> batch jobs. That works fine.
> The fast servers are not always busy however, so I let them take any
> message and then prioritize them based on JMSPriority. The idea here
> is that the fast servers can take over some work from the batch
> servers when they are idle. That does not seem to work though .. high
> priority jobs are simply appended to end of the queue instead of being
> scheduled at the beginning.
> This is on 4.1.0. I also tried on 4.2-SNAPSHOT but the behaviour seems
> to be the same.
>  S.



View raw message