Ruwan

I think by default, we should mark a fault as a response? Any reason to not do this?

Also for the below code, shall we check if a ReplyTo exists, and else remove the 'To' header like we now do in config?

thanks
asankha

[EMAIL PROTECTED] wrote:
Author: ruwan
Date: Sun Jun 29 10:33:49 2008
New Revision: 672650

Fixing the issue SYNAPSE-367

now the <makeFault> will optionally mark the message as a response when the 
response attribute value is set to true

==============================================================================
--- 
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/FaultMediator.java
 (original)
+++ 
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/FaultMediator.java
 Sun Jun 29 10:33:49 2008
@@ -114,23 +118,31 @@
...
+        // if the message has to be marked as a response mark it as response
+        if (markAsResponse) {
+            synCtx.setResponse(true);
+            synCtx.setTo(synCtx.getReplyTo());
+        }
+ + return true;

--
Asankha C. Perera

WSO2 - http://wso2.org
http://esbmagic.blogspot.com

Reply via email to