ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r583211 - /ode/branches/APACHE_ODE_1.1/scheduler-simple/src/main/java/org/apache/ode/scheduler/simple/SimpleScheduler.java
Date Tue, 09 Oct 2007 16:28:08 GMT
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;
+                }
             }
         });
     }



Mime
View raw message