activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <bruce.sny...@gmail.com>
Subject Re: Howto check if connection is active in Pool when all brokers in a failover chain are shutdown
Date Tue, 08 Dec 2009 16:35:21 GMT
On Tue, Dec 8, 2009 at 3:17 AM, forda <daniel.forberg@bredband.net> wrote:
>
> Hi !
>
> I found out a solution, checking if a PID file exist or not on the local
> broker on the
> server where the service is deployed. Seems to be the easiest way to
> accomplish this.

The ActiveMQConnection.isClose() method will tell you if the
connection is closed.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

Mime
View raw message