servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r724297 - /servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/DeliveryChannelImpl.java
Date Mon, 08 Dec 2008 09:32:39 GMT
Author: ffang
Date: Mon Dec  8 01:32:38 2008
New Revision: 724297

URL: http://svn.apache.org/viewvc?rev=724297&view=rev
Log:
[SM-1717]getError() shouldn't return a null exception in case of sendSync timeout

Modified:
    servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/DeliveryChannelImpl.java

Modified: servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/DeliveryChannelImpl.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/DeliveryChannelImpl.java?rev=724297&r1=724296&r2=724297&view=diff
==============================================================================
--- servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/DeliveryChannelImpl.java
(original)
+++ servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/messaging/DeliveryChannelImpl.java
Mon Dec  8 01:32:38 2008
@@ -503,6 +503,8 @@
                     LOG.debug("Exchange " + messageExchange.getExchangeId() + " has been
aborted");
                 }
                 me.getPacket().setAborted(true);
+                me.getPacket().setError(new RuntimeException("sendSync timeout for "
+                    + messageExchange.getExchangeId()));
                 result = false;
             }
         } catch (InterruptedException e) {



Mime
View raw message