activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: is Broker up?
Date Tue, 09 May 2006 12:28:06 GMT
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)

--

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message