Hide Forgot
Made comments with internal links private for security reasons. Thanks for reporting these issues, Jiri, I'll get this fixed ASAP.
(In reply to Jiri Holusa from comment #0) > #1: Snippet > > When trying this snippet using JBoss EAP (two instances on localhost on > different ports) I'm getting org.infinispan.jmx.JmxDomainConflictException: > Domain already registered org.infinispan when trying to register: > type=CacheManager,name="DefaultCacheManager" > > I figured out that it's probably because EAP has its own underlaying JMX (no > problems when running it on Tomcat) and there comes the collision. It's all > resolved by adding GlobalConfiguration with > .globalJmxStatistics().allowDuplicateDomains(true).enable(). > > I think it would be nice to mention this fact in some tip or something. Jiri, I have addressed this by adding a note saying: JBoss EAP includes its own underlying JMX. This can cause a collision when using the sample code with JBoss EAP and display an error such as "org.infinispan.jmx.JmxDomainConflictException: Domain already registered org.infinispan". Does this fix the problem, or would you advise that further information is needed to clarify?
Martin Gencur <mgencur> made a comment on jira JBQA-8358 Misha, it would be best to add also the following snippet to show the solution: GlobalConfiguration glob = new GlobalConfigurationBuilder() .clusteredDefault().globalJmxStatistics().allowDuplicateDomains(true).enable().build(); I know we're talking about GlobalConfigurationBuilder later in the docs so we could just reference it and mention the .allowDuplicateDomains(true) later, together with GlobalConfigurationBuilder.
Even better! Thanks, Martin. I'll implement this and post links to review the final version in the docs.
Excellent, thanks for picking these out, Jiri! I was a bit busy yesterday but I'll be applying all of these including Martin's comment today and providing links for each. :)
Perfect job!! Thank you very much. Done
Jiří Holuša <jholusa> updated the status of jira JBQA-8358 to Resolved
Jiří Holuša <jholusa> made a comment on jira JBQA-8358 Documentation snippets are corrected.
Martin Gencur <mgencur> made a comment on jira JBQA-8358 Nice! Thanks.
This bug is approved and available at: https://access.redhat.com/site/documentation/Red_Hat_JBoss_Data_Grid/