camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1201667 - /camel/branches/camel-2.8.x/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
Date Mon, 14 Nov 2011 11:25:20 GMT
Author: ningjiang
Date: Mon Nov 14 11:25:20 2011
New Revision: 1201667

URL: http://svn.apache.org/viewvc?rev=1201667&view=rev
Log:
Fix the CS error of camel-jdbc

Modified:
    camel/branches/camel-2.8.x/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java

Modified: camel/branches/camel-2.8.x/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java?rev=1201667&r1=1201666&r2=1201667&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
(original)
+++ camel/branches/camel-2.8.x/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
Mon Nov 14 11:25:20 2011
@@ -98,8 +98,9 @@ public class JdbcProducer extends Defaul
             conn.commit();
         } catch (Exception e) {
             try {
-                if (conn != null)
+                if (conn != null) {
                     conn.rollback();
+                }
             } catch (SQLException sqle) {
                 LOG.warn("Error on jdbc component rollback: " + sqle, sqle);
             }



Mime
View raw message