activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: exit app after broker down
Date Thu, 11 Aug 2011 14:49:26 GMT
On Thu, 2011-08-11 at 16:42 +0200, Oscar Pernas wrote:
> Hi all,
> 
> Im using Java Client to make a small application to catch all advisory
> messages from the broker. Ive set the following connection string:
> 
> failover://(tcp://localhost:61616)
> 
> 
> The application starts succesfully, but if I stop the broker, after a few
> secons, my application exits. The last message that I could read is:
> 
> org.apache.activemq.transport.failover.FailoverTransport
> handleTransportFailure
> Transport failed to tcp://localhost:61616 , attempting to automatically
> reconnect due to: java.io.EOFException
> 
> 
> If I shutdown and start the broker quickly, the application still continue
> receiving data. I've set so many different connection parameters like
> soTimeout, maxConnectionAttemps, but nothing works.
> 

We'd probably need to see the app code to tell for sure, sound like you
are dropping out due to an exception listener or something but can't
really tell without code.

Regards

-- 
Tim Bish
------------
FuseSource
Email: tim.bish@fusesource.com
Web: http://fusesource.com
Twitter: tabish121
Blog: http://timbish.blogspot.com/




Mime
View raw message