You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2017/10/20 07:42:26 UTC
[camel] branch camel-2.19.x updated: CAMEL-11926: close
JMXConnector on shutdown of JMXConsumer in camel-jmx
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 <sh...@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" <co...@camel.apache.org>'].