[jboss-jira] [JBoss JIRA] (JGRP-2394) Provide an overloaded JmxConfigurator.registerChannel that takes an ObjectName to be used as prefix instead of the domain
Nistor Adrian (Jira)
issues at jboss.org
Tue Nov 5 04:30:00 EST 2019
[ https://issues.jboss.org/browse/JGRP-2394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13808118#comment-13808118 ]
Nistor Adrian commented on JGRP-2394:
-------------------------------------
As I said in the description, we cannot use domain for uniqueness because we have to use a single domain in that particular use case and we want all our MBeans in it, including the JGroups stuff of course. I did tentatively use clusterName successfully already by adding a prefix that was able to differentiate (cache manager name in that particular case) , but [~dan.berindei] felt we are breaking compatibility with existing clients if we mangle the MBean names. I would not loose sleep on that, but it's not just my call. I've seen the commit in github and I think it fits our needs. Thanks [~belaban]!
> Provide an overloaded JmxConfigurator.registerChannel that takes an ObjectName to be used as prefix instead of the domain
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: JGRP-2394
> URL: https://issues.jboss.org/browse/JGRP-2394
> Project: JGroups
> Issue Type: Enhancement
> Affects Versions: 4.1.6
> Reporter: Nistor Adrian
> Assignee: Bela Ban
> Priority: Major
> Fix For: 4.1.8
>
>
> The JmxConfigurator.registerChannel variant that takes a domain is not enough for use cases where multiple apps running in a jvm join the same JGroups cluster and also share the same jmx domain. In this case the channel MBean object names will collide. The de-duplication mechanism using random number suffixes does not provide predictable results. Avoiding jmx domain sharing is also not possible due to the nature of the use case.
> So we propose adding someting like this:
> JmxConfigurator.registerChannel(JChannel channel, MBeanServer server, ObjectName namePrefix, String cluster_name, boolean register_protocols)
> which would allow the application using JGroups to have greater control of the generated object names for channel and protocols. The namePrefix will provide the domain and also a key-value list that will serve as the prefix for all ObjectNames internally generated by JGroups. It will be the caller's task to ensure this leads to generation of unique names.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list