Re: Concurrent consumers

2010-11-15 Thread danielsantos
Hey, I just noticed that when I run only one of the consumers in the example, one message stays in the queue and does not get consumed. If I start both consumers all messages are consumed. Can you explain this scenario ? I am using as a connection factory URL : tcp://localhost:61616?jms.prefetchP

Re: Concurrent consumers

2010-11-15 Thread danielsantos
Great. That was it. Thanks. -- View this message in context: http://activemq.2283324.n4.nabble.com/Concurrent-consumers-tp3041439p3043739.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Concurrent consumers

2010-11-14 Thread Rob Davies
Yes - you can have concurrent consumers - looks like you've fallen victim to prefetch subscription - http://activemq.apache.org/what-is-the-prefetch-limit-for.html I suggest you use a prefetch of 1 cheers, Rob Rob Davies follow me: http://twitter.com/rajdavies I work here: http://fusesource.c

Re: Concurrent Consumers

2007-03-28 Thread James Strachan
On 3/28/07, spiderman2 <[EMAIL PROTECTED]> wrote: 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 job

Re: Concurrent Consumers

2007-03-28 Thread spiderman2
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. (I

Re: Concurrent Consumers

2007-03-28 Thread James Strachan
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:

Re: Concurrent Consumers

2007-03-28 Thread James Strachan
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 c