[infinispan-issues] [JBoss JIRA] (ISPN-2886) Using multiple DefaultCacheManager w/o jmx leads to JmxDomainConflictException

Thomas Fromm (JIRA) jira-events at lists.jboss.org
Mon Mar 4 13:58:56 EST 2013


    [ https://issues.jboss.org/browse/ISPN-2886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758258#comment-12758258 ] 

Thomas Fromm edited comment on ISPN-2886 at 3/4/13 1:58 PM:
------------------------------------------------------------

A solution could be introduce globalConfig.globalJmxStatistics().enabled() check in CacheManagerJmxRegistration.start() but this is in conflict with feature ISPN-2290 :-/

This makes it not easy to use DefaultCacheManager several times within an application without using one shared. How about making allowDuplicateDomain true as default, even when its nessesary always to register jmx?
                
      was (Author: tfromm):
    A solution could be introduce globalConfig.globalJmxStatistics().enabled() check in CacheManagerJmxRegistration.start() but this is in conflict with feature ISPN-2290 :-/

This makes it not easy to use DefaultCacheManager several times within an application without using one shared.
                  
> Using multiple DefaultCacheManager w/o jmx leads to JmxDomainConflictException
> ------------------------------------------------------------------------------
>
>                 Key: ISPN-2886
>                 URL: https://issues.jboss.org/browse/ISPN-2886
>             Project: Infinispan
>          Issue Type: Bug
>          Components: JMX, reporting and management
>    Affects Versions: 5.2.1.Final
>            Reporter: Thomas Fromm
>            Assignee: Galder Zamarreño
>
> Creating multiple instances of DefaultCacheManager leads to CacheManagerJmxRegistrationTest, even when JMX is disabled in configuration.
> org.infinispan.jmx.JmxDomainConflictException: Domain already registered org.infinispan when trying to register: type=CacheManager,name="DefaultCacheManager"
>         at org.infinispan.jmx.JmxUtil.buildJmxDomain(JmxUtil.java:75)
>         at org.infinispan.jmx.CacheManagerJmxRegistration.updateDomain(CacheManagerJmxRegistration.java:101)
>         at org.infinispan.jmx.CacheManagerJmxRegistration.buildRegistrar(CacheManagerJmxRegistration.java:95)
>         at org.infinispan.jmx.AbstractJmxRegistration.registerMBeans(AbstractJmxRegistration.java:59)
>         at org.infinispan.jmx.CacheManagerJmxRegistration.start(CacheManagerJmxRegistration.java:63)
>         at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:705)
>         at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:300)
>         at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:171)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list