So the idea is that you use the stop method on the org.apache.activemq.broker.jmx.NetworkBridgeView, so on an individual bridge created by the network connector. There are two mbean in the mix. The parent org.apache.activemq.broker.jmx.NetworkConnectorView and the nested NetworkBridgeView.
static discovery of the networkConncetor should trap the stop and initiate a restart. Note: you should not use failover with static: discovery, let the static discovery deal with any reconnect issues. see: https://issues.apache.org/jira/browse/AMQ-3542 for more detail and https://issues.apache.org/jira/browse/AMQ-3564 On 10 July 2012 21:43, billy <billy.buzz...@bnsflogistics.com> wrote: > It might help if I show you a piece of my active.xml file that sets up the > NetworkBridges. > <networkConnectors> > <networkConnector name="DwhBridge" duplex="true" > uri="static:(failover:(tcp://dwh:61616))" /> > <networkConnector name="EdiBridge" duplex="true" > uri="static:(failover:(tcp://edi:61616))" /> > </networkConnectors> > > > > From: billy [via ActiveMQ] [mailto:ml-node+s2283324n4653842...@n4.nabble.com] > Sent: Tuesday, July 10, 2012 3:13 PM > To: Billy Buzzard > Subject: Re: JMX and NetworkBridge > > Gary I'm sorry I have to ask this silly questions but when I stop the > NetworkConnector via the NetworkConnectorViewMBean what auto-restarts the > NetworkConnector? Perhaps I missed something in the configuration and that's > my problem. Or, maybe the auto-restart does work and it's not updating the > rmiregistry with the newly start Network connector. Whatever the reason, the > NetworkConnector does not reappear in JConsole. > > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://activemq.2283324.n4.nabble.com/JMX-and-NetworkBridge-tp4653357p4653842.html > To unsubscribe from JMX and NetworkBridge, click > here<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4653357&code=QmlsbHkuQnV6emFyZEBibnNmbG9naXN0aWNzLmNvbXw0NjUzMzU3fC05MjA3NTk2MzE=>. > NAML<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/JMX-and-NetworkBridge-tp4653357p4653846.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- http://fusesource.com http://blog.garytully.com