Details
-
Bug
-
Resolution: Done
-
Major
-
2.10
-
None
Description
JmxConfigurator.registerChannel don't register the same protocol MBeans as JmxConfigurator.unregisterChannel unregister.
-JmxConfigurator.registerChannel register every protocol whereas JmxConfigurator.unregisterChannel unregister only protocols whose class comply to isAnnotationPresent(MBean.class)
-JmxConfigurator.unregisterChannel unregister protocols with name getProtocolRegistrationName(clusterName, "jgroups", p) whereas JmxConfigurator.registerChannel register them with getProtocolRegistrationName(cluster_name, domain, p). That means that if you register your channel with a domain other than "jgroups" you won't be able to use JmxConfigurator.unregisterChannel to unregister them.
-JmxConfigurator.unregisterChannel unregister the channel with getChannelRegistrationName(clusterName) whereas JmxConfigurator.registerChannel register it with getChannelRegistrationName(channel, domain, cluster_name).