camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [1/2] git commit: CAMEL-7067 Only persist changes when no exceptions occurred with thanks to Gregor
Date Thu, 02 Jan 2014 03:48:30 GMT
Updated Branches:
  refs/heads/master adaec93e5 -> 68fc1ac87


CAMEL-7067 Only persist changes when no exceptions occurred with thanks to Gregor


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

Branch: refs/heads/master
Commit: 99c4af43c924b9a6fe1930821523b301a00684d4
Parents: adaec93
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Thu Jan 2 11:42:58 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Thu Jan 2 11:43:48 2014 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/component/jcr/JcrProducer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/99c4af43/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrProducer.java
b/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrProducer.java
index de4b8f3..295e9c6 100644
--- a/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrProducer.java
+++ b/components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrProducer.java
@@ -72,8 +72,8 @@ public class JcrProducer extends DefaultProducer {
                 throw new RuntimeException("Unsupported operation: " + operation);
             }
 
-        } finally {
             session.save();
+        } finally {
             if (session != null && session.isLive()) {
                 session.logout();
             }


Mime
View raw message