James Strachan schrieb:
2009/10/19 Christian Schneider <[email protected]>:
I would like to configure a jms endpoint so it will consume messages by
their priority.
For example it should first consume all messages with priority 0 before it
consumes the first message with priority 1.
Is this possible and if yes how do I configure it?
I'd recommend using selectors; have some consumers just do high
priority stuff and a smaller number of consumers process anything.
Here's an FAQ detailing the various options...
http://activemq.apache.org/how-can-i-support-priority-queues.html
Hi James,
this is probably a very good solution for most cases. Most of all I
think it is easy to setup in camel.
The interesting thing about the solution is that a high priority
message is in general processed faster than a low priority message but
does not block low priority messages. In most
cases this is probably what is needed.
The first case I have though is a consumer that can only work single
threaded. So I think in this case the solution claus proposed can be
used. I also think about using a database to buffer the messages. As you
can then easily order the messages by "priority, time".
Thanks for the help
Christian
--
Christian Schneider
---
http://www.liquid-reality.de