servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r634940 - /servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProvider.java
Date Sat, 08 Mar 2008 12:00:02 GMT
Author: ffang
Date: Sat Mar  8 04:00:02 2008
New Revision: 634940

URL: http://svn.apache.org/viewvc?rev=634940&view=rev
Log:
[SM-1159]Cxf bc provider should check MessageExchange status before send out the message to
avoid "Out not supported" exception.

Modified:
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProvider.java

Modified: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProvider.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProvider.java?rev=634940&r1=634939&r2=634940&view=diff
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProvider.java
(original)
+++ servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/CxfBcProvider.java
Sat Mar  8 04:00:02 2008
@@ -25,6 +25,7 @@
 import java.util.logging.Logger;
 
 import javax.jbi.management.DeploymentException;
+import javax.jbi.messaging.ExchangeStatus;
 import javax.jbi.messaging.MessageExchange;
 import javax.jbi.messaging.NormalizedMessage;
 import javax.wsdl.factory.WSDLFactory;
@@ -117,6 +118,10 @@
     }
 
     public void process(MessageExchange exchange) throws Exception {
+        
+        if (exchange.getStatus() != ExchangeStatus.ACTIVE) {
+            return;
+        }
         NormalizedMessage nm = exchange.getMessage("in");
         
                



Mime
View raw message