servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r488680 - /incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/endpoints/SimpleEndpoint.java
Date Tue, 19 Dec 2006 14:04:10 GMT
Author: gnodet
Date: Tue Dec 19 06:04:10 2006
New Revision: 488680

URL: http://svn.apache.org/viewvc?view=rev&rev=488680
Log:
Throw an exception if the sendSync failed

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

Modified: incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/endpoints/SimpleEndpoint.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/endpoints/SimpleEndpoint.java?view=diff&rev=488680&r1=488679&r2=488680
==============================================================================
--- incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/endpoints/SimpleEndpoint.java
(original)
+++ incubator/servicemix/trunk/common/servicemix-common/src/main/java/org/apache/servicemix/common/endpoints/SimpleEndpoint.java
Tue Dec 19 06:04:10 2006
@@ -68,7 +68,9 @@
     }
     
     protected void sendSync(MessageExchange me) throws MessagingException {
-        channel.sendSync(me);
+        if (!channel.sendSync(me)) {
+            throw new MessagingException("SendSync failed");
+        }
     }
     
     protected void done(MessageExchange me) throws MessagingException {



Mime
View raw message