camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/2] git commit: camel-salesforce should clear internal cached class map when stopping.
Date Thu, 16 Jan 2014 09:46:10 GMT
Updated Branches:
  refs/heads/camel-2.12.x 9c022be08 -> 71abad266
  refs/heads/master 9fa0fcddc -> d75d588f1


camel-salesforce should clear internal cached class map when stopping.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d75d588f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d75d588f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d75d588f

Branch: refs/heads/master
Commit: d75d588f109c77bf5e4931c581fe72a65d8e9b77
Parents: 9fa0fcd
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Jan 16 10:49:40 2014 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Jan 16 10:49:40 2014 +0100

----------------------------------------------------------------------
 .../apache/camel/component/salesforce/SalesforceComponent.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/d75d588f/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/SalesforceComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/SalesforceComponent.java
b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/SalesforceComponent.java
index 8cc2237..f4ae8c9 100644
--- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/SalesforceComponent.java
+++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/SalesforceComponent.java
@@ -201,6 +201,10 @@ public class SalesforceComponent extends UriEndpointComponent implements
Endpoin
                 httpClient.stop();
             }
         }
+
+        if (classMap != null) {
+            classMap.clear();
+        }
     }
 
     public SubscriptionHelper getSubscriptionHelper() throws Exception {


Mime
View raw message