activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Balanced reading from queue group
Date Mon, 21 Aug 2006 07:43:25 GMT
On 8/21/06, Eugene Prokopiev <prokopiev@stc.donpac.ru> wrote:
> > Can you use parallelisation? In which case just create one consumer
> > (in its own session) for each queue then you'l process things
> > concurrently. Otherwise you might want to create a JMS client with a
> > collection of consumers where you do a receive(timeout) on each queue
> > in order to ensure fair consumption.
>
> I can't understand difference between two cases. In every case I need to
> create separate thread with separate session and consumer, am I right?

No - in the second case you could share a session across all consumers
and just have 1 thread processing a message at once. i.e. the second
case is when you only want to process one message at once
-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message