activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: JMX and NetworkBridge
Date Wed, 20 Jun 2012 15:09:47 GMT
hmm, it should come back when it is auto restarted by the network
connector. But the lifecycle of that MBean will be independent of how
you access it.

The idea is that a network connector will automatically reconnect in
the event of a failure.
There may be an issue here if that is not working. I had a quick peek
and I don't see any explicit junit test for restart via a jmx so there
may be an issue here.

On 20 June 2012 15:12, billy <> wrote:
> 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] []
> 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>>
>> 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:
>> Sent from the ActiveMQ - User mailing list archive at
> --
> ________________________________
> If you reply to this email, your message will be added to the discussion below:
> To unsubscribe from JMX and NetworkBridge, click here<>.
> NAML<>
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at


View raw message