activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From forda <daniel.forb...@bredband.net>
Subject Re: Howto check if connection is active in Pool when all brokers in a failover chain are shutdown
Date Tue, 08 Dec 2009 19:49:59 GMT

Ok, thanks but how do i get the active connection from the pool.
The only methods i found of the ConnectionFactory is to create a
connection, which is already created implicitly i assume. It is
also possible to create a validation query as against a
databasepool to verify that the connection in the pool is ok.

Thanks in advance.

Regards,

Daniel



bsnyder wrote:
> 
> 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
> 
> 

-- 
View this message in context: http://old.nabble.com/Howto-check-if-connection-is-active-in-Pool-when-all-brokers-in-a-failover-chain-are-shutdown-tp26626661p26699641.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message