Author: ruwan
Date: Wed Nov 24 03:26:16 2010
New Revision: 1038457
URL: http://svn.apache.org/viewvc?rev=1038457&view=rev
Log:
formattings of sample configurations
Modified:
synapse/branches/2.0/src/site/xdoc/upgrading.xml
Modified: synapse/branches/2.0/src/site/xdoc/upgrading.xml
URL:
http://svn.apache.org/viewvc/synapse/branches/2.0/src/site/xdoc/upgrading.xml?rev=1038457&r1=1038456&r2=1038457&view=diff
==============================================================================
--- synapse/branches/2.0/src/site/xdoc/upgrading.xml (original)
+++ synapse/branches/2.0/src/site/xdoc/upgrading.xml Wed Nov 24 03:26:16 2010
@@ -119,39 +119,39 @@
the filter matching set of mediators has to be enclosed within a
<then> element.</p>
<p>If we consider the following sample from the 1.2 version of
synapse;
<pre xml:space="preserve"><filter
source="get-property('To')" regex=".*/StockQuote.*">
+ <send>
+ <endpoint>
+ <address
uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ </endpoint>
+ </send>
+ <drop/>
+</filter></pre>
+ the equivalent configuration for the 2.0.0 release is going to be;
+ <pre xml:space="preserve"><filter
source="get-property('To')" regex=".*/StockQuote.*">
+ <then>
<send>
<endpoint>
<address
uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
</endpoint>
</send>
<drop/>
- </filter></pre>
- the equivalent configuration for the 2.0.0 release is going to be;
- <pre xml:space="preserve"><filter
source="get-property('To')" regex=".*/StockQuote.*">
- <then>
- <send>
- <endpoint>
- <address
uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
- </endpoint>
- </send>
- <drop/>
- <then/>
- </filter></pre>
+ <then/>
+</filter></pre>
You could also add an else close to this conditional statement as
follows on 2.0.0 which
is not possible on 1.2
<pre xml:space="preserve"><filter
source="get-property('To')" regex=".*/StockQuote.*">
- <then>
- <send>
- <endpoint>
- <address
uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
- </endpoint>
- </send>
- <drop/>
- <then/>
- <else/>
- <log/>
- <else/>
- </filter></pre></p>
+ <then>
+ <send>
+ <endpoint>
+ <address
uri="http://localhost:9000/soap/SimpleStockQuoteService"/>
+ </endpoint>
+ </send>
+ <drop/>
+ <then/>
+ <else/>
+ <log/>
+ <else/>
+</filter></pre></p>
</subsection>
<subsection name="Migration Tool">
<p>In general it is recommended to run the configuration through
the migration tool