portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r600768 - /portals/jetspeed-2/branches/JETSPEED-2.1.3/components/statistics/src/java/org/apache/jetspeed/statistics/impl/BatchedStatistics.java
Date Tue, 04 Dec 2007 01:51:18 GMT
Author: taylor
Date: Mon Dec  3 17:51:18 2007
New Revision: 600768

URL: http://svn.apache.org/viewvc?rev=600768&view=rev
Log:
rollback on exception as proposed by Rango Keshevan

Modified:
    portals/jetspeed-2/branches/JETSPEED-2.1.3/components/statistics/src/java/org/apache/jetspeed/statistics/impl/BatchedStatistics.java

Modified: portals/jetspeed-2/branches/JETSPEED-2.1.3/components/statistics/src/java/org/apache/jetspeed/statistics/impl/BatchedStatistics.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/components/statistics/src/java/org/apache/jetspeed/statistics/impl/BatchedStatistics.java?rev=600768&r1=600767&r2=600768&view=diff
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-2.1.3/components/statistics/src/java/org/apache/jetspeed/statistics/impl/BatchedStatistics.java
(original)
+++ portals/jetspeed-2/branches/JETSPEED-2.1.3/components/statistics/src/java/org/apache/jetspeed/statistics/impl/BatchedStatistics.java
Mon Dec  3 17:51:18 2007
@@ -176,11 +176,18 @@
             // only clear the records if we actually store them...
             logRecords.clear();
             con.setAutoCommit(autoCommit);
-        } catch (SQLException e)
+        } 
+        catch (SQLException e)
         {
             // todo log to standard Jetspeed logger
             e.printStackTrace();
-        } finally
+            try
+            {
+                con.rollback();
+            }
+            catch (Exception e2) {}
+        } 
+        finally
         {
             try
             {



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message