3

Hello I'm getting following error:

ERROR JmxUtil - ISPN000034: There's already an cache manager instance registered under 'org.infinispan' JMX domain. If you want to allow multiple instances configured with same JMX domain enable 'allowDuplicateDomains' attribute in 'globalJmxStatistics' config element

My question is where and how can i configure this option programmatically and is there a method to unregister the cacheManager from JMX so this error will not occur everytime.

1 Answer 1

8

You can allow multiple cache managers to register in the same JMX domain with

new GlobalConfigurationBuilder().globalJmxStatistics().allowDuplicateDomains(true)

However, if you have multiple cache managers active at a time, you should ideally configure a different domain for each of them with

new GlobalConfigurationBuilder().globalJmxStatistics().jmxDomain("domain")

Also, make sure you call cacheManager.stop() when you stop using a cache manager to unregister its MBeans from JMX.

1
  • Thanks a lot. I'm going to try this.
    – aQuip
    Jun 4, 2014 at 9:50

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.