@Override
public void onStart(NetworkBridge bridge) {
if (!brokerService.isUseJmx()) {
return;
}
NetworkBridgeViewMBean view = new NetworkBridgeView(bridge);
((NetworkBridgeView)view).setCreateByDuplex(createdByDuplex);
try {
ObjectName objectName = createNetworkBridgeObjectName(bridge);
AnnotatedMBean.registerMBean(brokerService.getManagementContext(), view, objectName);
bridge.setMbeanObjectName(objectName);