activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Arentz" <stefan.are...@gmail.com>
Subject Confused about JMSPriority
Date Sun, 25 Feb 2007 16:30:07 GMT
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.

Mime
View raw message