camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject svn commit: r655710 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationAgentImpl.java
Date Tue, 13 May 2008 02:00:22 GMT
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();



Mime
View raw message