I want to have a server of several consumer threads which pull Jobs from various Brokers. However, I want to limit the number of Jobs of a certain type, that are running concurrently on this server.
So for example, not more than 5 Priority 1 jobs should be running at the same time on a server. (In case these are very long Jobs and monopolize my consumer thread pool). However, I don't want to have 5 Consumers looking *only* for priority 1 threads which would otherwise sit idle if there are none. James.Strachan wrote: > > On 3/28/07, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: >> I don't want these consumers to be exclusive to receiving priority1 jobs >> though. > > I don't follow - could you describe what you're after a bit more > specifically. > > >> James.Strachan wrote: >> > >> > On 3/27/07, spiderman2 <[EMAIL PROTECTED]> wrote: >> >> >> >> I want to limit the concurrent processing of messages on a broker >> which >> >> have >> >> a certain filter value. >> >> >> >> For example, I only want my pool of consumers to consume N messages >> with >> >> the >> >> 'priority=1' at the same time. >> >> >> >> Can this be done? >> > >> > The number of consumers (each with their own session) defines the >> > concurrency. Then just use a selector for the priority="1" part. >> > >> > -- >> > >> > James >> > ------- >> > http://radio.weblogs.com/0112098/ >> > >> > >> Quoted from: >> http://www.nabble.com/Concurrent-Consumers-tf3475121s2354.html#a9708986 >> >> > > > -- > > James > ------- > http://radio.weblogs.com/0112098/ > > -- View this message in context: http://www.nabble.com/Concurrent-Consumers-tf3475121s2354.html#a9713756 Sent from the ActiveMQ - User mailing list archive at Nabble.com.