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/07/14 10:14:21 UTC
svn commit: r963967 - in /synapse/trunk/java:
modules/migrator/src/main/resources/ repository/conf/sample/
Author: ruwan
Date: Wed Jul 14 08:14:20 2010
New Revision: 963967
URL: http://svn.apache.org/viewvc?rev=963967&view=rev
Log:
fixing the comment indentation problem
Modified:
synapse/trunk/java/modules/migrator/src/main/resources/synapse-configuration-migrator.xslt
synapse/trunk/java/repository/conf/sample/synapse_sample_0.xml
synapse/trunk/java/repository/conf/sample/synapse_sample_1.xml
synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml
synapse/trunk/java/repository/conf/sample/synapse_sample_2.xml
Modified: synapse/trunk/java/modules/migrator/src/main/resources/synapse-configuration-migrator.xslt
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/migrator/src/main/resources/synapse-configuration-migrator.xslt?rev=963967&r1=963966&r2=963967&view=diff
==============================================================================
--- synapse/trunk/java/modules/migrator/src/main/resources/synapse-configuration-migrator.xslt (original)
+++ synapse/trunk/java/modules/migrator/src/main/resources/synapse-configuration-migrator.xslt Wed Jul 14 08:14:20 2010
@@ -77,7 +77,7 @@ This is the synapse migration xslt which
<xsl:template match="comment()">
<xsl:choose>
<xsl:when test="local-name(following-sibling::*[position()=1])='definitions'" xml:space="preserve">
- <xsl:copy-of select="." xml:space="preserve"/>
+<xsl:copy-of select="." xml:space="preserve"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy/>
Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_0.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_0.xml?rev=963967&r1=963966&r2=963967&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_0.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_0.xml Wed Jul 14 08:14:20 2010
@@ -1,4 +1,5 @@
-<!--
+<?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
~ distributed with this work for additional information
@@ -16,12 +17,16 @@
~ specific language governing permissions and limitations
~ under the License.
-->
-
+
<!-- Introduction to Synapse -->
<definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration">
- <!-- log all attributes of messages passing through -->
- <log level="full"/>
- <!-- Send the message to implicit destination -->
- <send/>
+ <sequence name="main">
+ <!-- log all attributes of messages passing through -->
+ <log level="full"/>
+
+ <!-- Send the message to implicit destination -->
+ <send/>
+ </sequence>
+
</definitions>
Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_1.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_1.xml?rev=963967&r1=963966&r2=963967&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_1.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_1.xml Wed Jul 14 08:14:20 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,14 +20,18 @@
<!-- Simple content based routing (CBR) of messages -->
<definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration">
- <!-- filtering of messages with XPath and regex matches -->
- <filter source="get-property('To')" regex=".*/StockQuote.*">
- <send>
- <endpoint>
- <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
- </endpoint>
- </send>
- <drop/>
- </filter>
- <send/>
-</definitions>
\ No newline at end of file
+
+ <sequence name="main">
+ <!-- filtering of messages with XPath and regex matches -->
+ <filter source="get-property('To')" regex=".*/StockQuote.*">
+ <send>
+ <endpoint>
+ <address uri="http://localhost:9000/services/SimpleStockQuoteService"/>
+ </endpoint>
+ </send>
+ <drop/>
+ </filter>
+ <send/>
+ </sequence>
+
+</definitions>
Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml?rev=963967&r1=963966&r2=963967&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_100.xml Wed Jul 14 08:14:20 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,21 +17,27 @@
~ specific language governing permissions and limitations
~ under the License.
-->
-
+
<!-- Using WS-Security for outgoing messages -->
<definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration">
+
<localEntry key="sec_policy" src="file:repository/conf/sample/resources/policy/policy_3.xml"/>
- <in>
- <send>
- <endpoint name="secure">
- <address uri="http://localhost:9000/services/SecureStockQuoteService">
- <enableSec policy="sec_policy"/>
- </address>
- </endpoint>
- </send>
- </in>
- <out>
- <send/>
- </out>
+ <!-- Test -->
+ <sequence name="main">
+ <in>
+ <send>
+ <!--Test 2-->
+ <endpoint name="secure">
+ <address uri="http://localhost:9000/services/SecureStockQuoteService">
+ <enableSec policy="sec_policy"/>
+ </address>
+ </endpoint>
+ </send>
+ </in>
+ <out>
+ <send/>
+ </out>
+ </sequence>
+
</definitions>
Modified: synapse/trunk/java/repository/conf/sample/synapse_sample_2.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/repository/conf/sample/synapse_sample_2.xml?rev=963967&r1=963966&r2=963967&view=diff
==============================================================================
--- synapse/trunk/java/repository/conf/sample/synapse_sample_2.xml (original)
+++ synapse/trunk/java/repository/conf/sample/synapse_sample_2.xml Wed Jul 14 08:14:20 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,30 +20,30 @@
<!-- CBR with the Switch-case mediator, using message properties -->
<definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration">
- <switch source="//m0:getQuote/m0:request/m0:symbol" xmlns:m0="http://services.samples">
- <case regex="IBM">
- <!-- the property mediator sets a local property on the *current* message -->
- <property name="symbol" value="Great stock - IBM"/>
- </case>
- <case regex="MSFT">
- <property name="symbol" value="Are you sure? - MSFT"/>
- </case>
- <default>
- <!-- it is possible to assign the result of an XPath expression as well -->
- <property name="symbol"
- expression="fn:concat('Normal Stock - ', //m0:getQuote/m0:request/m0:symbol)"
- xmlns:m0="http://services.samples"/>
- </default>
- </switch>
- <log level="custom">
- <!-- the get-property() XPath extension function allows the lookup of local message properties
- as well as properties from the Axis2 or Transport contexts (i.e. transport headers) -->
- <property name="symbol" expression="get-property('symbol')"/>
- <!-- the get-property() function supports the implicit message headers To/From/Action/FaultTo/ReplyTo -->
- <property name="epr" expression="get-property('To')"/>
- </log>
+ <sequence name="main">
+ <switch source="//m0:getQuote/m0:request/m0:symbol">
+ <case xmlns:m0="http://services.samples" regex="IBM">
+ <!-- the property mediator sets a local property on the *current* message -->
+ <property name="symbol" value="Great stock - IBM"/>
+ </case>
+ <case xmlns:m0="http://services.samples" regex="MSFT">
+ <property name="symbol" value="Are you sure? - MSFT"/>
+ </case>
+ <default xmlns:m0="http://services.samples">
+ <!-- it is possible to assign the result of an XPath expression as well -->
+ <property name="symbol" expression="fn:concat('Normal Stock - ', //m0:getQuote/m0:request/m0:symbol)"/>
+ </default>
+ </switch>
+ <log level="custom">
+ <!-- the get-property() XPath extension function allows the lookup of local message properties
+ as well as properties from the Axis2 or Transport contexts (i.e. transport headers) -->
+ <property name="symbol" expression="get-property('symbol')"/>
+ <!-- the get-property() function supports the implicit message headers To/From/Action/FaultTo/ReplyTo -->
+ <property name="epr" expression="get-property('To')"/>
+ </log>
+ <!-- Send the messages where they are destined to (i.e. the 'To' EPR of the message) -->
+ <send/>
+ </sequence>
- <!-- Send the messages where they are destined to (i.e. the 'To' EPR of the message) -->
- <send/>
-</definitions>
\ No newline at end of file
+</definitions>