You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by jb...@apache.org on 2010/10/28 23:04:11 UTC
svn commit: r1028479 -
/servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/AsyncBaseLifeCycle.java
Author: jbonofre
Date: Thu Oct 28 21:04:11 2010
New Revision: 1028479
URL: http://svn.apache.org/viewvc?rev=1028479&view=rev
Log:
[SMXCOMP-817] Set the ExchangeStatus to ERROR before setting the error message to avoid target endpoint looping. Thanks for Andrei Shakirin for the patch.
Modified:
servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/AsyncBaseLifeCycle.java
Modified: servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/AsyncBaseLifeCycle.java
URL: http://svn.apache.org/viewvc/servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/AsyncBaseLifeCycle.java?rev=1028479&r1=1028478&r2=1028479&view=diff
==============================================================================
--- servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/AsyncBaseLifeCycle.java (original)
+++ servicemix/components/shared-libraries/trunk/servicemix-common/src/main/java/org/apache/servicemix/common/AsyncBaseLifeCycle.java Thu Oct 28 21:04:11 2010
@@ -482,6 +482,7 @@ public class AsyncBaseLifeCycle implemen
}
}
if (oldStatus == ExchangeStatus.ACTIVE) {
+ exchange.setStatus(ExchangeStatus.ERROR);
exchange.setError(t instanceof Exception ? (Exception) t : new Exception(t));
channel.send(exchange);
}