camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/2] git commit: CAMEL-7067 Only persist changes when no exceptions occurred with thanks to Gregor
Date Thu, 02 Jan 2014 04:04:29 GMT
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/65b8be0f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/65b8be0f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/65b8be0f

Branch: refs/heads/camel-2.12.x
Commit: 65b8be0fc7469e934a0cc0e48f4ba43d3cd7f2c9
Parents: dd5e436
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:52:30 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/65b8be0f/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