activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Neaga" <ane...@tacitknowledge.com>
Subject Re: Consumer does not receive anything after session.rollback()
Date Thu, 20 Jul 2006 07:23:29 GMT
I'm thinking of creating a consumer for every message i get and close it 
cleanly after it processed the message.
Do you know how expensive is to create a consumer like that, that would 
create a new connection and session every time ?

----- Original Message ----- 
From: "James Strachan" <james.strachan@gmail.com>
To: <activemq-users@geronimo.apache.org>
Sent: Thursday, July 20, 2006 10:15
Subject: Re: Consumer does not receive anything after session.rollback()


> On 7/20/06, Adrian Neaga <aneaga@tacitknowledge.com> wrote:
>> I'd like to try the load balancer idea, can this be easily done with
>> ActiveMQ ?
>
> Yes - just create sessions & consumers
>
>
>> If i run many consumers the same message may be delivered to more than 
>> one
>> consumer
>> which is not acceptable..
>
> No - with queues one message is only sent to one consumer, no matter
> how many consumers you are running. So the messages are load balanced
> across the consumers
>
> -- 
>
> James
> -------
> http://radio.weblogs.com/0112098/
> 


Mime
View raw message