You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2007/10/09 18:28:08 UTC

svn commit: r583211 - /ode/branches/APACHE_ODE_1.1/scheduler-simple/src/main/java/org/apache/ode/scheduler/simple/SimpleScheduler.java

Author: mriou
Date: Tue Oct  9 09:28:07 2007
New Revision: 583211

URL: http://svn.apache.org/viewvc?rev=583211&view=rev
Log:
Tying up a little knot.

Modified:
    ode/branches/APACHE_ODE_1.1/scheduler-simple/src/main/java/org/apache/ode/scheduler/simple/SimpleScheduler.java

Modified: ode/branches/APACHE_ODE_1.1/scheduler-simple/src/main/java/org/apache/ode/scheduler/simple/SimpleScheduler.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/scheduler-simple/src/main/java/org/apache/ode/scheduler/simple/SimpleScheduler.java?rev=583211&r1=583210&r2=583211&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.1/scheduler-simple/src/main/java/org/apache/ode/scheduler/simple/SimpleScheduler.java (original)
+++ ode/branches/APACHE_ODE_1.1/scheduler-simple/src/main/java/org/apache/ode/scheduler/simple/SimpleScheduler.java Tue Oct  9 09:28:07 2007
@@ -156,7 +156,13 @@
     public <T> Future<T> execIsolatedTransaction(final Callable<T> transaction) throws Exception, ContextException {
         return _exec.submit(new Callable<T>() {
             public T call() throws Exception {
-                return execTransaction(transaction);
+                try {
+                    return execTransaction(transaction);
+                } catch (Exception e) {
+                    __log.error("An exception occured while executing an isolated transaction, " +
+                            "the transaction is going to be abandoned.", e);
+                    return null;
+                }
             }
         });
     }