activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kitplummer <kitplum...@gmail.com>
Subject Re: is Broker up?
Date Tue, 09 May 2006 16:13:28 GMT


James.Strachan wrote:
> 
> On 5/8/06, kitplummer <kitplummer@gmail.com> wrote:
>>
>> Is there a good strategy for checking to see if the Broker is up, from
>> the
>> client side?  I need to keep trying to connect until a connection is
>> made...
> 
> How about letting ActiveMQ do that for you?
> 
> http://activemq.org/How+do+I+configure+automatic+reconnection
> 
> you can also register a transport listener to listen for the
> connection state if you really want to do stuff manually yourself
> 
> http://activemq.codehaus.org/maven/apidocs/org/apache/activemq/ActiveMQConnection.html#addTransportListener(org.apache.activemq.transport.TransportListener)
> 

I tried the automatic reconnection thing...but, it didn't seem to work if
the Broker wasn't available for the initial connection.
--
View this message in context: http://www.nabble.com/is-Broker-up--t1580466.html#a4303116
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message