One possible option is to use JMX APIs and query for a NetworkBridge on the broker. I am fairly sure the same information can be obtained using an API on the BrokerService or so, but I don't know the correct method either.
Torsten Mielke FuseSource.com tmielke.blogspot.com On Tue, 2011-06-14 at 11:12 -0700, jai.mathaiyan wrote: > I have a requirement to determine if a broker is connected to another broker > in the network. I am not able to figure this out with the existing api's. > Any help is appreciated. Here is little more detail - > > I have Broker A and Broker B. Broker A has to create a (static://(tcp://...) > network connection to Broker B. However it needs to first validate if Broker > B is not already connected to any another Broker. Broker B has only one tcp > transport connector. > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/How-to-determine-network-of-Brokers-tp3597322p3597322.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.