Re: Re: Way to know whether failover client is connecting?

2007-05-09 Thread James Strachan
On 5/8/07, Dingwen Yuan <[EMAIL PROTECTED]> wrote: But what is the programmable way to know it? Try the TransportListener which gets notified when connections to a broker start/stop/fail etc http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQConnection.html#addT

Re: Way to know whether failover client is connecting?

2007-05-09 Thread Adrian Co
ker = new BrokerService(); >>NetworkConnector connector = >> embeddedBroker.addNetworkConnector("static:(tcp://127.0.0.1:61616)"); >>connector.setNetworkTTL(2); >>connector.setDynamicOnly(true); >> embeddedBroker.start(); >> >> &

Re: Re: Way to know whether failover client is connecting?

2007-05-09 Thread Dingwen Yuan
questions, sorry for the bothering. Dingwen Yuan 2007-05-09 发件人: Adrian Co 发送时间: 2007-05-09 15:35:55 收件人: users@activemq.apache.org 抄送: 主题: Re: Way to know whether failover client is connecting? Network connections at the moment are one-way afaik. You would need to create a network connection

Re: Way to know whether failover client is connecting?

2007-05-09 Thread Adrian Co
.setNetworkTTL(2); >connector.setDynamicOnly(true); >embeddedBroker.start(); > > > > > Dingwen Yuan > 2007-05-09 > > > > 发件人: Adrian Co > 发送时间: 2007-05-09 13:27:02 > 收件人: users@activemq.apache.org > 抄送: > 主题: Re: Way to know whether failover client is connect

Re: Re: Way to know whether failover client is connecting?

2007-05-08 Thread Dingwen Yuan
ngwen Yuan 2007-05-09 发件人: Adrian Co 发送时间: 2007-05-09 13:27:02 收件人: users@activemq.apache.org 抄送: 主题: Re: Way to know whether failover client is connecting? A FailoverListener would be interesting, but afaik, its not provided. Dingwen Yuan wrote: > But what is the programmable w

Re: Way to know whether failover client is connecting?

2007-05-08 Thread Adrian Co
A FailoverListener would be interesting, but afaik, its not provided. Dingwen Yuan wrote: > But what is the programmable way to know it? > > > > > Dingwen Yuan > 2007-05-09 > > > > 发件人: spiderman2 > 发送时间: 2007-05-09 11:43:31 > 收件人: users@activemq.apache.o

Re: Re: Way to know whether failover client is connecting?

2007-05-08 Thread Dingwen Yuan
But what is the programmable way to know it? Dingwen Yuan 2007-05-09 发件人: spiderman2 发送时间: 2007-05-09 11:43:31 收件人: users@activemq.apache.org 抄送: 主题: Re: Way to know whether failover client is connecting? When I kill the broker to test a failover, I believe the Consumer's logs sh

Re: Way to know whether failover client is connecting?

2007-05-08 Thread spiderman2
you! > > > > > Dingwen Yuan > 2007-05-09 > > -- View this message in context: http://www.nabble.com/Way-to-know-whether-failover-client-is-connecting--tf3713515s2354.html#a10388010 Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Way to know whether failover client is connecting?

2007-05-08 Thread Dingwen Yuan
Hi all, Is there a way to know that a failover ActiveMQ client is now trying to connect to the brokers? Thank you! Dingwen Yuan 2007-05-09