From f81a235db2ddb77bc6949f867a0f0c3f58b34225 Mon Sep 17 00:00:00 2001 From: Rob Snyder Date: Fri, 11 Oct 2024 15:06:34 -0400 Subject: [PATCH] don't do jmx stuff is not using jmx --- src/org/jgroups/stack/GossipRouter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/jgroups/stack/GossipRouter.java b/src/org/jgroups/stack/GossipRouter.java index 3eac7430a7..1ff9684f7e 100644 --- a/src/org/jgroups/stack/GossipRouter.java +++ b/src/org/jgroups/stack/GossipRouter.java @@ -237,7 +237,8 @@ public void stop() { return; try { - JmxConfigurator.unregister(this, Util.getMBeanServer(), "jgroups:name=GossipRouter"); + if(jmx) + JmxConfigurator.unregister(this, Util.getMBeanServer(), "jgroups:name=GossipRouter"); } catch(Exception ex) { log.error(Util.getMessage("MBeanDeRegistrationFailed"), ex);