[esb-java-dev] svn commit r6138 - trunk/esb/java/modules/distribution/src/main/conf

svn at wso2.org svn at wso2.org
Mon Aug 6 08:53:05 PDT 2007


Author: indika
Date: Mon Aug  6 08:53:00 2007
New Revision: 6138

Modified:
   trunk/esb/java/modules/distribution/src/main/conf/synapse.xml
Log:
change synapse conf


Modified: trunk/esb/java/modules/distribution/src/main/conf/synapse.xml
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/conf/synapse.xml	(original)
+++ trunk/esb/java/modules/distribution/src/main/conf/synapse.xml	Mon Aug  6 08:53:00 2007
@@ -16,7 +16,7 @@
   ~  specific language governing permissions and limitations
   ~  under the License.
   -->
-<!-- introduction to URL source properties, registry based properties and the XSLT mediator -->
+        <!-- introduction to URL source properties, registry based properties and the XSLT mediator -->
 <definitions xmlns="http://ws.apache.org/ns/synapse">
 
     <!-- the SimpleURLRegistry allows access to a URL based registry (e.g. file:/// or http://) -->
@@ -27,17 +27,23 @@
         <parameter name="cachableDuration">15000</parameter>
     </registry>
 
-    <!-- define the request processing XSLT resource as a static URL source -->
-    <localEntry key="xslt-key-req" src="file:repository/conf/sample/resources/transform/transform.xslt"/>
+    <sequence name="main">
+        <in>
+            <!-- Log all messages passing through -->
+            <log level="full"/>
 
-    <in>
-        <!-- transform the custom quote request into a standard quote requst expected by the service -->
-        <xslt key="xslt-key-req"/>
-    </in>
-    <out>
-        <!-- transform the standard response back into the custom format the client expects -->
-	    <!-- the key is looked up in the remote registry and loaded as a 'dynamic' registry resource -->
-        <xslt key="transform/transform_back.xslt"/>
-    </out>
-	<send/>
+            <!-- ensure that the default configuration only sends if it is one of samples -->
+            <!-- Otherwise Synapse would be an open proxy by default (BAD!)               -->
+            <filter source="get-property('To')" regex="http://localhost:9000.*">
+                <!-- Send the messages where they have been sent (i.e. implicit "To" EPR) -->
+                <send/>
+            </filter>
+        </in>
+        <out>
+            <send/>
+        </out>
+    </sequence>
+    <sequence name="fault">
+        <log/>
+    </sequence>
 </definitions> 
\ No newline at end of file




More information about the Esb-java-dev mailing list