How long can the consumer wait to get the higher priority message? 100K may not be what you want... or 85K still no good... but what's the number that's acceptable then?
If you can accept "some number of messages" are allowed to come ahead of the higher priority message, then you can just use JMS priority... all of producer A's messages send with default priority... producer B send with high (9) priority... the "number of messages" in the equation can be controlled by you depending on consumer prefetch or cursor caching in the broker... On Thu, Apr 25, 2013 at 3:15 PM, Michael Black <[email protected]> wrote: > Looks like you might be able to use the statistics plugin > It appears that you can query any queue and find out how many messages are > in it. > So if you can use fixed queue names this should work. > http://activemq.apache.org/statisticsplugin.html > > > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta
