activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Timeout and Failover on a queue
Date Tue, 27 Nov 2007 07:09:47 GMT
On 26/11/2007, Jason Rosenberg <> wrote:
> I'm curious whether you've found a solution to this.  I've seen also that if
> you use the maxReconnectAttempts, and it fails to reconnect, then the
> connection cannot be reliably recovered.

If a connection fails to reconnect it must be discarded (along with
all of its associated resources). e.g. imagine a JDBC connection when
a database goes down - its of no real use any more

> I've tried it with the Jencks AMQPool for my connection pooling, as well as
> the standard ActiveMQ PooledConnections....
> And if you don't use the maxReconnectAttempts flag, then it retries forever,
> and hangs the client.
> So, I'd be interested to know if there's a way to have it recover cleanly on
> failure, but always return quickly to the client if all failover choices
> have failed....

Does switching to Spring's MessageListenerContainer stuff instead of
the Jencks pool help? Basically the pool must ditch the connections,
sessions & consumers if the connection fails.

Open Source Integration

View raw message