servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r415798 - /incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/BaseLifeCycle.java
Date Tue, 20 Jun 2006 20:51:12 GMT
Author: gnodet
Date: Tue Jun 20 13:51:12 2006
New Revision: 415798

URL: http://svn.apache.org/viewvc?rev=415798&view=rev
Log:
SM-462: When the processor throws an exception, BaseLifeCycle tries to rollback a transaction
when there is no transaction active

Modified:
    incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/BaseLifeCycle.java

Modified: incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/BaseLifeCycle.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/BaseLifeCycle.java?rev=415798&r1=415797&r2=415798&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/BaseLifeCycle.java
(original)
+++ incubator/servicemix/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/BaseLifeCycle.java
Tue Jun 20 13:51:12 2006
@@ -46,7 +46,7 @@
                 // If we are transacted and this is a runtime exception
                 // try to mark transaction as rollback
                 if (transactionManager != null && 
-                    transactionManager.getStatus() != Status.STATUS_ACTIVE && 
+                    transactionManager.getStatus() == Status.STATUS_ACTIVE && 
                     e instanceof RuntimeException) {
                     transactionManager.setRollbackOnly();
                 } else  {



Mime
View raw message