camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/2] git commit: camel-salesforce should clear internal cached class map when stopping.
Date Thu, 16 Jan 2014 09:46:11 GMT
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/71abad26
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/71abad26
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/71abad26

Branch: refs/heads/camel-2.12.x
Commit: 71abad26684fc3207a6d37e1c4a55ed6fd8071da
Parents: 9c022be
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:50:16 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/camel/blob/71abad26/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