This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-2.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.20.x by this push:
     new d3ede01  CAMEL-11926: close JMXConnector on shutdown of JMXConsumer in 
camel-jmx
d3ede01 is described below

commit d3ede01cc04cdc8c1cbbc59a21f7ff63628944c1
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>'].

Reply via email to