Author: ruwan
Date: Mon May 11 12:06:51 2009
New Revision: 35515
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=35515

Log:
sync up with synapse trunk


Modified:
   
branches/synapse/1.3-wso2v1/modules/transports/core/vfs/src/main/java/org/apache/synapse/transport/vfs/VFSTransportSender.java

Modified: 
branches/synapse/1.3-wso2v1/modules/transports/core/vfs/src/main/java/org/apache/synapse/transport/vfs/VFSTransportSender.java
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.3-wso2v1/modules/transports/core/vfs/src/main/java/org/apache/synapse/transport/vfs/VFSTransportSender.java?rev=35515&r1=35514&r2=35515&view=diff
==============================================================================
--- 
branches/synapse/1.3-wso2v1/modules/transports/core/vfs/src/main/java/org/apache/synapse/transport/vfs/VFSTransportSender.java
      (original)
+++ 
branches/synapse/1.3-wso2v1/modules/transports/core/vfs/src/main/java/org/apache/synapse/transport/vfs/VFSTransportSender.java
      Mon May 11 12:06:51 2009
@@ -79,16 +79,10 @@
     public void sendMessage(MessageContext msgCtx, String targetAddress,
         OutTransportInfo outTransportInfo) throws AxisFault {
 
-        // TODO: this check is too strict and breaks sample 254
-        // Need to check
-        //  - why this isn't detected by the unit tests
-        //  - why this works with JMS (the JMS transport sender uses the same 
method to determine
-        //    whether to wait for a response; if this change breaks sample 
254, one would also
-        //    expect problems with sample 254 when substituting VFS by JMS)
-//        if (waitForSynchronousResponse(msgCtx)) {
-//            throw new AxisFault("The VFS transport doesn't support 
synchronous responses. " +
-//                     "Please use the appropriate (out only) message exchange 
pattern.");
-//        }
+        if (waitForSynchronousResponse(msgCtx)) {
+            throw new AxisFault("The VFS transport doesn't support synchronous 
responses. " +
+                       "Please use the appropriate (out only) message exchange 
pattern.");
+        }
 
         VFSOutTransportInfo vfsOutInfo = null;
 

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to