You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ha...@apache.org on 2008/05/13 04:00:22 UTC
svn commit: r655710 -
/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationAgentImpl.java
Author: hadrian
Date: Mon May 12 19:00:22 2008
New Revision: 655710
URL: http://svn.apache.org/viewvc?rev=655710&view=rev
Log:
CAMEL-509. Patch applied with thanks!
Modified:
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationAgentImpl.java
Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationAgentImpl.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationAgentImpl.java?rev=655710&r1=655709&r2=655710&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationAgentImpl.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationAgentImpl.java Mon May 12 19:00:22 2008
@@ -161,6 +161,16 @@
}
protected void doStop() throws Exception {
+ // close JMX Connector
+ if (cs != null) {
+ try {
+ cs.stop();
+ } catch (IOException e) {
+ // ignore
+ }
+ cs = null;
+ }
+
// Using the array to hold the busMBeans to avoid the
// CurrentModificationException
Object[] mBeans = mbeans.toArray();