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" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, July 20, 2006 10:15
Subject: Re: Consumer does not receive anything after session.rollback()
On 7/20/06, Adrian Neaga <[EMAIL PROTECTED]> 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/