syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [1/2] syncope git commit: Applying some Camel best-practices for init
Date Wed, 07 Sep 2016 15:08:47 GMT
Repository: syncope
Updated Branches:
  refs/heads/master a29cc8061 -> 1839d6095


Applying some Camel best-practices for init


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

Branch: refs/heads/master
Commit: 1839d60953c1c514c3cc58f9299909dd80284e7f
Parents: 8c90e12
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Wed Sep 7 17:08:20 2016 +0200
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Wed Sep 7 17:08:39 2016 +0200

----------------------------------------------------------------------
 .../syncope/core/provisioning/camel/SyncopeCamelContext.java       | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/1839d609/ext/camel/provisioning-camel/src/main/java/org/apache/syncope/core/provisioning/camel/SyncopeCamelContext.java
----------------------------------------------------------------------
diff --git a/ext/camel/provisioning-camel/src/main/java/org/apache/syncope/core/provisioning/camel/SyncopeCamelContext.java
b/ext/camel/provisioning-camel/src/main/java/org/apache/syncope/core/provisioning/camel/SyncopeCamelContext.java
index 5466004..581d4d9 100644
--- a/ext/camel/provisioning-camel/src/main/java/org/apache/syncope/core/provisioning/camel/SyncopeCamelContext.java
+++ b/ext/camel/provisioning-camel/src/main/java/org/apache/syncope/core/provisioning/camel/SyncopeCamelContext.java
@@ -62,6 +62,8 @@ public class SyncopeCamelContext {
         synchronized (this) {
             if (camelContext == null) {
                 camelContext = new SpringCamelContext(ApplicationContextProvider.getApplicationContext());
+                camelContext.setStreamCaching(false);
+                camelContext.setAllowUseOriginalMessage(false);
                 camelContext.addRoutePolicyFactory(new MetricsRoutePolicyFactory());
             }
         }


Mime
View raw message