You may need to write a little JMX query script (or see the activemq-admin script that ships by default). You can try looking it up that way. I think jolokia is enabled an all recent versions as well, so could use REST/json/http to look it up as well:
http://activemq.apache.org/rest.html In general, for dynamic discover of brokers, Fabric8 can help you: http://fabric8.io http://fabric8.io/gitbook/brokerClients.html On Thu, Jul 10, 2014 at 3:26 AM, nauman73 <[email protected]> wrote: > Hi ceposta > > Thanks for quick feedback. The camel route does the trick and I am able to > route the advisory messages to opposite broker. > > I have a little hiccup though that I have not been able to overcome. In > order to route the messages to opposite broker I need to establish a > connection with opposite broker by providing the configuration in XML. I > have done as follows for the moment. > > <bean id="activemqRemote" > class="org.apache.activemq.camel.component.ActiveMQComponent" > > <property name="connectionFactory"> > <bean class="org.apache.activemq.ActiveMQConnectionFactory"> > <property name="brokerURL" value="tcp://10.110.22.45:61616" /> > <property name="userName" value="${activemq.username}"/> > <property name="password" value="${activemq.password}"/> > </bean> > </property> > </bean> > > The "brokerURL" is currently pointing to IP address of opposite broker. > However, I would like to dynamically discover the brokerURL for the > opposite > broker by somehow fetching the remote address of the network bridge, as > seen > in attached image. > > <http://activemq.2283324.n4.nabble.com/file/n4683064/remoteBroker.png> > > I have tried to find a way to do this via XML configuration but so far no > luck. > > Is it at all possible to do it in XML configuration? > > Thanks > > Regards > Nauman > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Advisory-messages-for-remote-broker-clients-tp4683016p4683064.html > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog http://fabric8.io twitter: @christianposta
