We’re on version 5.5.1. When I stop the initiating NetworkConnector via the NetworkConnectorViewMBean via JConsole, the entire NetworkConnectorViewMBean disappears from the list in JConsole, so I can’t call its start method. I’m still a little new to JMX and if I were to get the NetworkConnectorViewMBean via a program that I write then the bean would be persisted long enough were I could call the start method – does that make sense?
From: gtully [via ActiveMQ] [mailto:ml-node+s2283324n4653393...@n4.nabble.com] Sent: Wednesday, June 20, 2012 9:05 AM To: Billy Buzzard Subject: Re: JMX and NetworkBridge with a partially failed duplex bridge, to get it recreated, you need to restart the network connector, so that the initiator again starts to create the duplex bridge. It is not possible to just start the duplex responder end as all of the info it needs from the initiator needs to be resent. Maybe the inactivity monitor is the answer here, it will detect the remote connection loss and teardown and recreate the bridge. For JMX, just use the NetworkConnectorViewMBean to do the restart. stop/restart on the network connector and it will recreate all of the bridges. Or just find the single bridge mbean and stop it. The network connector will auto recreate that. what version are you on? On 20 June 2012 14:45, billy <[hidden email]</user/SendEmail.jtp?type=node&node=4653393&i=0>> wrote: > Thanks for the information, but sorry to hear that the possibilities are > limited at this time. The actual problem I was trying to solve has to do > with a partially failed duplex network bridge. The non-creating side of a > duplex network bridge is dropping for some unknown reason while the creating > side is still up and running. I can easily use JMX to detect the problem, > but I needed a way to recreate the bridge as soon as the drop was detected. > I'm using a spoke-and-hub topology, one of the spokes is an old WindowsXP > Pro machine and all I wanted to do was restart its networkbridge when I > detect it going down. > > Is it possible to create a SpringBean with JMX access that could > recreate/start the networkbridge? If yes, where's a good place to start > looking in the code to figure out how networkbridges are created from the > ActiveMQ.xml file? > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/JMX-and-NetworkBridge-tp4653357p4653391.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- http://fusesource.com http://blog.garytully.com ________________________________ If you reply to this email, your message will be added to the discussion below: http://activemq.2283324.n4.nabble.com/JMX-and-NetworkBridge-tp4653357p4653393.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-tp4653357p4653394.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.