You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2010/08/16 10:13:13 UTC

svn commit: r985824 - in /synapse/trunk/java/repository/conf/sample/resources: misc/synapse.xml synapse.xml

Author: ruwan
Date: Mon Aug 16 08:13:12 2010
New Revision: 985824

URL: http://svn.apache.org/viewvc?rev=985824&view=rev
Log:
Fixing the sample synapse configurations

Modified:
    synapse/trunk/java/repository/conf/sample/resources/misc/synapse.xml
    synapse/trunk/java/repository/conf/sample/resources/synapse.xml

Modified: synapse/trunk/java/repository/conf/sample/resources/misc/synapse.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/resources/misc/synapse.xml?rev=985824&r1=985823&r2=985824&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/resources/misc/synapse.xml (original)
+++ synapse/trunk/java/repository/conf/sample/resources/misc/synapse.xml Mon Aug 16 08:13:12 2010
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <!--
   ~  Licensed to the Apache Software Foundation (ASF) under one
   ~  or more contributor license agreements.  See the NOTICE file
@@ -16,7 +17,6 @@
   ~  specific language governing permissions and limitations
   ~  under the License.
   -->
-
 <definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration">
 
     <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
@@ -32,12 +32,6 @@
         <header name="Action" value="urn:commodity"/>
     </sequence>
 
-    <!-- Check if the URL matches the stockquote gateway/dumb case -->
-    <filter source="get-property('To')" regex=".*/CommodityQuote.*">
-        <sequence key="commodityQuote"/>
-    </filter>
-
-    <send/>
     <proxy name="StockQuoteProxy">
         <target>
             <endpoint>
@@ -52,4 +46,12 @@
         </publishWSDL>
     </proxy>
 
-</definitions>
\ No newline at end of file
+    <sequence name="main">
+        <!-- Check if the URL matches the stockquote gateway/dumb case -->
+        <filter source="get-property('To')" regex=".*/CommodityQuote.*">
+            <sequence key="commodityQuote"/>
+        </filter>
+        <send/>
+    </sequence>
+
+</definitions>

Modified: synapse/trunk/java/repository/conf/sample/resources/synapse.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/resources/synapse.xml?rev=985824&r1=985823&r2=985824&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/resources/synapse.xml (original)
+++ synapse/trunk/java/repository/conf/sample/resources/synapse.xml Mon Aug 16 08:13:12 2010
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <!--
   ~  Licensed to the Apache Software Foundation (ASF) under one
   ~  or more contributor license agreements.  See the NOTICE file
@@ -19,8 +20,12 @@
 
 <!-- a registry based Synapse configuration -->
 <definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration">
-    <log level="custom">
-        <property name="message" value="This is a dynamic Synapse configuration"/>
-    </log>
-    <send/>
-</definitions>
\ No newline at end of file
+
+    <sequence name="main">
+        <log level="custom">
+            <property name="message" value="This is a dynamic Synapse configuration"/>
+        </log>
+        <send/>
+    </sequence>
+
+</definitions>