0

How do I get a list of network connectors of a ActiveMQ broker via JMX? This Stackoverflow post answers how to get a list of transport (a.k.a. client) connectors, however, even if BrokerViewMBean provides a way to get a list of transport connectors via JMX:

brokerViewMBean.getTransportConnectors();

there isn't an equivalent

brokerViewMBean.getNetworkConnectors();

even though there are:

brokerViewMBean.addNetworkConnector(String discoveryAddress);
brokerViewMBean.removeNetworkConnector(String connectorName) ; 

A list of network connectors can be retrieved via BrokerService,

NetworkConnector    getNetworkConnectorByName(String connectorName) 
List<NetworkConnector>  getNetworkConnectors() 
String[]    getNetworkConnectorURIs() 

but, if I 'm not mistaken, BrokerService starts an embedded ActiveMQ, it is not a JMX API.

J Kost
  • 41
  • 1
  • 7

1 Answers1

0

The JMX MBean currently doesn't support this but there is an open issue created by the author of this question to add those APIs. This will require code changes and a new broker release before becoming available.

Tim Bish
  • 17,475
  • 4
  • 32
  • 42