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
ker = new BrokerService();
>>NetworkConnector connector =
>> embeddedBroker.addNetworkConnector("static:(tcp://127.0.0.1:61616)");
>>connector.setNetworkTTL(2);
>>connector.setDynamicOnly(true);
>> embeddedBroker.start();
>>
>>
&
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
.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
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
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
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
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.
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