activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino" <>
Subject Re: How to recover active connection if it is down when using spring?
Date Thu, 14 Aug 2008 17:51:34 GMT
Not sure I understand?  So on failure you want to auto reconnect but
you don't want to block until the reconnection happens?  Not this is
possible when connecting to a remote broker.

Perhaps your best bet is to use an embedded broker so that way you
never have broker failure.  All your operations never block and you
just configure the embedded broker to network with the remote brokers
so that messages get forwarded when they come back online.

On Mon, Aug 11, 2008 at 11:40 PM, Wing <> wrote:
> I am using spring for activemq connection, I would like to reconnect/recover
> the broker connection if the broker is down. I know we can use failover: in
> the url, but it will cause the tomcat to be held until it can connect to the
> broker.
> If I set the retry limit in the url, it will not auto reconnect anymore
> afterwards.
> Any other way to do recovery except configurating the failover url?
> I am using org.apache.activemq.pool.PooledConnectionFactory
> Thanks.
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at



Open Source SOA

View raw message