This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch camel-2.19.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.19.x by this push: new 7c2810e CAMEL-11926: close JMXConnector on shutdown of JMXConsumer in camel-jmx 7c2810e is described below commit 7c2810e8182ebcef36013695c9a3fe23b2e3ef72 Author: Stephen Higgs <shi...@redhat.com> AuthorDate: Thu Oct 19 22:43:28 2017 -0400 CAMEL-11926: close JMXConnector on shutdown of JMXConsumer in camel-jmx --- .../src/main/java/org/apache/camel/component/jmx/JMXConsumer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXConsumer.java b/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXConsumer.java index 871faf9..b7ea707 100644 --- a/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXConsumer.java +++ b/components/camel-jmx/src/main/java/org/apache/camel/component/jmx/JMXConsumer.java @@ -248,6 +248,10 @@ public class JMXConsumer extends DefaultConsumer implements NotificationListener removeNotificationListeners(); + if (mConnector != null) { + mConnector.close(); + } + ServiceHelper.stopService(mFormatter); } -- To stop receiving notification emails like this one, please contact ['"commits@camel.apache.org" <commits@camel.apache.org>'].