You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by hi...@apache.org on 2009/08/10 11:47:01 UTC

svn commit: r802707 - in /synapse/trunk/java: repository/conf/sample/synapse_sample_600.xml/sequences/main.xml repository/conf/sample/synapse_sample_600.xml/synapse.xml src/site/xdoc/Synapse_Samples.xml

Author: hiranya
Date: Mon Aug 10 09:46:59 2009
New Revision: 802707

URL: http://svn.apache.org/viewvc?rev=802707&view=rev
Log:
Documentation update


Added:
    synapse/trunk/java/repository/conf/sample/synapse_sample_600.xml/synapse.xml
Modified:
    synapse/trunk/java/repository/conf/sample/synapse_sample_600.xml/sequences/main.xml
    synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml

Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_600.xml/sequences/main.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_600.xml/sequences/main.xml?rev=802707&r1=802706&r2=802707&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_600.xml/sequences/main.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_600.xml/sequences/main.xml Mon Aug 10 09:46:59 2009
@@ -1,12 +1,12 @@
 <sequence name="main" xmlns="http://ws.apache.org/ns/synapse">
     <in>
-	<send/>
+        <send/>
     </in>
     <out>
-	<log level="custom">
-	   <property xmlns:ns="http://services.samples" xmlns:ax21="http://services.samples/xsd" name="Stock_Quote_on" expression="//ns:return/ax21:lastTradeTimestamp/child::text()" />
-	   <property xmlns:ns="http://services.samples" xmlns:ax21="http://services.samples/xsd" name="For_the_organization" expression="//ns:return/ax21:name/child::text()" />
-	   <property xmlns:ns="http://services.samples" xmlns:ax21="http://services.samples/xsd" name="Last_Value" expression="//ns:return/ax21:last/child::text()" />
-	</log>
+        <log level="custom">
+            <property xmlns:ns="http://services.samples" xmlns:ax21="http://services.samples/xsd" name="Stock_Quote_on" expression="//ns:return/ax21:lastTradeTimestamp/child::text()" />
+            <property xmlns:ns="http://services.samples" xmlns:ax21="http://services.samples/xsd" name="For_the_organization" expression="//ns:return/ax21:name/child::text()" />
+            <property xmlns:ns="http://services.samples" xmlns:ax21="http://services.samples/xsd" name="Last_Value" expression="//ns:return/ax21:last/child::text()" />
+        </log>
     </out>
 </sequence>

Added: synapse/trunk/java/repository/conf/sample/synapse_sample_600.xml/synapse.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_600.xml/synapse.xml?rev=802707&view=auto
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_600.xml/synapse.xml (added)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_600.xml/synapse.xml Mon Aug 10 09:46:59 2009
@@ -0,0 +1,20 @@
+<definitions xmlns="http://ws.apache.org/ns/synapse">
+    <proxy name="MainStockQuoteProxy" transports="http https">
+        <target>
+            <endpoint>
+                <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
+            </endpoint>
+            <outSequence>
+                <sequence key="sendSeq"/>
+            </outSequence>
+        </target>
+        <publishWSDL uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
+    </proxy>
+
+    <localEntry key="xslt-key-req" src="file:repository/conf/sample/resources/transform/transform.xslt"/>
+
+    <sequence name="sendSeq">
+        <log level="full"/>
+        <send/>
+    </sequence>
+</definitions>

Modified: synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml?rev=802707&r1=802706&r2=802707&view=diff
==============================================================================
--- synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml (original)
+++ synapse/trunk/java/src/site/xdoc/Synapse_Samples.xml Mon Aug 10 09:46:59 2009
@@ -4254,7 +4254,6 @@
        </p>
        <pre xml:space="preserve">
          synapse_sample_600.xml
-            |
             |-- endpoints
             |   `-- foo.xml
             |-- events
@@ -4270,8 +4269,10 @@
             |   |-- custom-logger.xml
             |   |-- fault.xml
             |   `-- main.xml
+            |-- synapse.xml
             `-- tasks
                 `-- task1.xml
+
        </pre>
        <div>
          <p>
@@ -4290,15 +4291,16 @@
             within it. When Synapse is started with the sample configuration 600, Synapse will load the configuration from
             this directory. You will find a number of subdirectories and a set of XML files in each of those directories.
             Synapse will parse all the XML files in this file hierarchy and construct the full Synapse configuration at startup. 
-            As a result when this sample is executed Synapse will start with three proxy services, three sequences, a task, an event
+            As a result when this sample is executed Synapse will start with four proxy services, several sequences, a task, an event
             source and some endpoint and local entry definitions.
          </p>
          <p>
             The names of the subdirectories (eg: proxy-services, sequences, endpoints) are fixed and hence cannot be changed.
             Also the registry definition should go into a file named registry.xml which resides at the top level of the file
-            hierarchy. The files which define proxy services, sequences, endpoints etc can have any name. These configuration
-            files must have the .xml extension at the end of the name. Synapse will ignore any files which does not have the
-            .xml extension.
+            hierarchy. It can also be specified in the synapse.xml file at top level. This synapse.xml file can include
+            any item that can be normally defined in a synapse.xml file. The files which define proxy services, sequences,
+            endpoints etc can have any name. These configuration files must have the .xml extension at the end of the name. Synapse
+            will ignore any files which do not have the .xml extension.
          </p>
          <p>
             None of the directories and files in the sample file hierachy are mandatory. You can leave entire directories out if