Author: veithen
Date: Tue Sep 18 07:22:55 2012
New Revision: 1387016
URL: http://svn.apache.org/viewvc?rev=1387016&view=rev
Log:
Fixed documentation for samples 851, 852 and 853.
Modified:
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample851.xml
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample852.xml
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample853.xml
Modified:
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample851.xml
URL:
http://svn.apache.org/viewvc/synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample851.xml?rev=1387016&r1=1387015&r2=1387016&view=diff
==============================================================================
---
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample851.xml
(original)
+++
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample851.xml
Tue Sep 18 07:22:55 2012
@@ -24,43 +24,42 @@
</properties>
<body>
<section name="Sample 851: Introduction to Synapse Splitter and
Aggregator eip function templates">
- <div class="xmlConf"><!-- Introduction to Synapse Splitter and
Aggregator eip function templates -->
-<definitions xmlns="http://ws.apache.org/ns/synapse">
-<import xmlns="http://ws.apache.org/ns/synapse" name="EipLibrary"
package="synapse.lang.eip" />
- <proxy name="StockQuoteProxy" transports="https http" startOnLoad="true"
trace="disable">
- <target>
- <inSequence>
- <log level="custom">
- <property name="text" value="splitterAggrigator"/>
- </log>
- <call-template target="synapse.lang.eip.splitter">
- <with-param xmlns:m0="http://services.samples"
name="iterate_exp" value="{{//m0:getQuote/m0:request}}"/>
- <with-param xmlns:m0="http://services.samples"
name="attach_path" value="{{//m0:getQuote}}"/>
- <with-param name="attach_path_enabled" value="true"/>
- <with-param name="endpoint_uri"
value="http://localhost:9000/services/SimpleStockQuoteService"/>
- </call-template>
- </inSequence>
- <outSequence>
- <call-template target="synapse.lang.eip.aggregator">
- <with-param name="sequence_ref" value="enr"/>
- <with-param xmlns:m0="http://services.samples"
name="aggregator_exp" value="{{//m0:return}}"/>
- <with-param name="oncomplete_seq_enabled" value="true"/>
- </call-template>
- </outSequence>
- </target>
- </proxy>
-<sequence xmlns="http://ws.apache.org/ns/synapse" name="enr">
- <log level="custom">
- <property name="text" value="seqhit"/>
- </log>
- <enrich>
- <source xmlns:m1="http://services.samples/xsd"
xmlns:m0="http://services.samples" clone="true"
- xpath="//m0:return[not(preceding-sibling::m0:return/m1:last
<= m1:last) and not(following-sibling::m0:return/m1:last < m1:last)]"/>
- <target type="body"/>
- </enrich>
- <send/>
-</sequence>
-</definitions></div>
+ <div class="xmlConf"><![CDATA[<definitions
xmlns="http://ws.apache.org/ns/synapse">
+<import xmlns="http://ws.apache.org/ns/synapse" name="EipLibrary"
package="synapse.lang.eip" />
+ <proxy name="StockQuoteProxy" transports="https http" startOnLoad="true"
trace="disable">
+ <target>
+ <inSequence>
+ <log level="custom">
+ <property name="text" value="splitterAggrigator"/>
+ </log>
+ <call-template target="synapse.lang.eip.splitter">
+ <with-param xmlns:m0="http://services.samples"
name="iterate_exp" value="{{//m0:getQuote/m0:request}}"/>
+ <with-param xmlns:m0="http://services.samples"
name="attach_path" value="{{//m0:getQuote}}"/>
+ <with-param name="attach_path_enabled" value="true"/>
+ <with-param name="endpoint_uri"
value="http://localhost:9000/services/SimpleStockQuoteService"/>
+ </call-template>
+ </inSequence>
+ <outSequence>
+ <call-template target="synapse.lang.eip.aggregator">
+ <with-param name="sequence_ref" value="enr"/>
+ <with-param xmlns:m0="http://services.samples"
name="aggregator_exp" value="{{//m0:return}}"/>
+ <with-param name="oncomplete_seq_enabled" value="true"/>
+ </call-template>
+ </outSequence>
+ </target>
+ </proxy>
+<sequence xmlns="http://ws.apache.org/ns/synapse" name="enr">
+ <log level="custom">
+ <property name="text" value="seqhit"/>
+ </log>
+ <enrich>
+ <source xmlns:m0="http://services.samples" clone="true"
+ xpath="//m0:return[not(preceding-sibling::m0:return/m0:last
<= m0:last) and not(following-sibling::m0:return/m0:last < m0:last)]"/>
+ <target type="body"/>
+ </enrich>
+ <send/>
+</sequence>
+</definitions>]]></div>
<subsection name="Objective">
<p>
This sample is an introduction to Synapse Splitter and Aggregator eip function
templates. This showcase the combined functionality of Splitter and Aggregator
patterns.
Modified:
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample852.xml
URL:
http://svn.apache.org/viewvc/synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample852.xml?rev=1387016&r1=1387015&r2=1387016&view=diff
==============================================================================
---
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample852.xml
(original)
+++
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample852.xml
Tue Sep 18 07:22:55 2012
@@ -24,32 +24,31 @@
</properties>
<body>
<section name="Sample 852: Introduction to Synapse Splitter-Agrregator
eip function template">
- <div class="xmlConf"><!-- Introduction to Synapse
Splitter-Agrregator eip function template -->
-<definitions xmlns="http://ws.apache.org/ns/synapse">
-<import xmlns="http://ws.apache.org/ns/synapse" name="EipLibrary"
package="synapse.lang.eip" />
- <sequence name="main">
- <call-template target="synapse.lang.eip.splitter_aggregator">
- <with-param name="attach_path_enabled" value="true"/>
- <with-param name="endpoint_uri"
value="http://localhost:9000/services/SimpleStockQuoteService"/>
- <with-param xmlns:m0="http://services.samples" name="iterate_exp"
value="{{//m0:getQuote/m0:request}}"/>
- <with-param xmlns:m0="http://services.samples" name="attach_path"
value="{{//m0:getQuote}}"/>
- <with-param name="sequence_ref" value="enr"/>
- <with-param xmlns:m0="http://services.samples"
name="aggregator_exp" value="{{//m0:return}}"/>
- <with-param name="oncomplete_seq_enabled" value="true"/>
- </call-template>
-</sequence>
-<sequence xmlns="http://ws.apache.org/ns/synapse" name="enr">
- <log level="custom">
- <property name="text" value="seqhit"/>
- </log>
- <enrich>
- <source xmlns:m1="http://services.samples/xsd"
xmlns:m0="http://services.samples" clone="true"
- xpath="//m0:return[not(preceding-sibling::m0:return/m1:last
<= m1:last) and not(following-sibling::m0:return/m1:last < m1:last)]"/>
- <target type="body"/>
- </enrich>
- <send/>
-</sequence>
-</definitions></div>
+ <div class="xmlConf"><![CDATA[<definitions
xmlns="http://ws.apache.org/ns/synapse">
+<import xmlns="http://ws.apache.org/ns/synapse" name="EipLibrary"
package="synapse.lang.eip" />
+ <sequence name="main">
+ <call-template target="synapse.lang.eip.splitter_aggregator">
+ <with-param name="attach_path_enabled" value="true"/>
+ <with-param name="endpoint_uri"
value="http://localhost:9000/services/SimpleStockQuoteService"/>
+ <with-param xmlns:m0="http://services.samples" name="iterate_exp"
value="{{//m0:getQuote/m0:request}}"/>
+ <with-param xmlns:m0="http://services.samples" name="attach_path"
value="{{//m0:getQuote}}"/>
+ <with-param name="sequence_ref" value="enr"/>
+ <with-param xmlns:m0="http://services.samples" name="aggregator_exp"
value="{{//m0:return}}"/>
+ <with-param name="oncomplete_seq_enabled" value="true"/>
+ </call-template>
+</sequence>
+<sequence xmlns="http://ws.apache.org/ns/synapse" name="enr">
+ <log level="custom">
+ <property name="text" value="seqhit"/>
+ </log>
+ <enrich>
+ <source xmlns:m0="http://services.samples" clone="true"
+ xpath="//m0:return[not(preceding-sibling::m0:return/m0:last
<= m0:last) and not(following-sibling::m0:return/m0:last < m0:last)]"/>
+ <target type="body"/>
+ </enrich>
+ <send/>
+</sequence>
+</definitions>]]></div>
<subsection name="Objective">
<p>
This sample is an introduction to Synapse Splitter-Aggregator combined
function template.
Modified:
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample853.xml
URL:
http://svn.apache.org/viewvc/synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample853.xml?rev=1387016&r1=1387015&r2=1387016&view=diff
==============================================================================
---
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample853.xml
(original)
+++
synapse/branches/SYNAPSE-905/modules/documentation/src/site/xdoc/userguide/samples/sample853.xml
Tue Sep 18 07:22:55 2012
@@ -24,28 +24,27 @@
</properties>
<body>
<section name="Sample 853: Introduction to Synapse Scatter-Gather eip
function template">
- <div class="xmlConf"><!-- Introduction to Synapse
Scatter-Gather eip function template -->
-<definitions xmlns="http://ws.apache.org/ns/synapse">
-<import xmlns="http://ws.apache.org/ns/synapse" name="EipLibrary"
package="synapse.lang.eip" />
-<sequence name="enr">
- <log level="custom">
- <property name="text" value="seqhit"/>
- </log>
- <enrich>
- <source xmlns:m1="http://services.samples/xsd"
xmlns:m0="http://services.samples" clone="true"
xpath="//m0:return[not(preceding-sibling::m0:return/m1:last <= m1:last) and
not(following-sibling::m0:return/m1:last < m1:last)]"/>
- <target type="body"/>
- </enrich>
- <send/>
- </sequence>
- <sequence name="main">
- <call-template target="synapse.lang.eip.scatter_gather">
- <with-param name="sequence_ref" value="enr"/>
- <with-param xmlns:m0="http://services.samples"
name="aggregator_exp" value="{{//m0:return}}"/>
- <with-param name="oncomplete_seq_enabled" value="true"/>
- <with-param name="recipient_list"
value="http://localhost:9001/services/SimpleStockQuoteService,http://localhost:9002/services/SimpleStockQuoteService,http://localhost:9003/services/SimpleStockQuoteService"/>
- </call-template>
- </sequence>
-</definitions></div>
+ <div class="xmlConf"><![CDATA[<definitions
xmlns="http://ws.apache.org/ns/synapse">
+<import xmlns="http://ws.apache.org/ns/synapse" name="EipLibrary"
package="synapse.lang.eip" />
+<sequence name="enr">
+ <log level="custom">
+ <property name="text" value="seqhit"/>
+ </log>
+ <enrich>
+ <source xmlns:m0="http://services.samples" clone="true"
xpath="//m0:return[not(preceding-sibling::m0:return/m0:last <= m0:last) and
not(following-sibling::m0:return/m0:last < m0:last)]"/>
+ <target type="body"/>
+ </enrich>
+ <send/>
+ </sequence>
+ <sequence name="main">
+ <call-template target="synapse.lang.eip.scatter_gather">
+ <with-param name="sequence_ref" value="enr"/>
+ <with-param xmlns:m0="http://services.samples"
name="aggregator_exp" value="{{//m0:return}}"/>
+ <with-param name="oncomplete_seq_enabled" value="true"/>
+ <with-param name="recipient_list"
value="http://localhost:9001/services/SimpleStockQuoteService,http://localhost:9002/services/SimpleStockQuoteService,http://localhost:9003/services/SimpleStockQuoteService"/>
+ </call-template>
+ </sequence>
+</definitions>]]></div>
<subsection name="Objective">
<p>
This sample is an introduction to Synapse Scatter-Gather eip function
template. Scatter-Gather pattern broadcasts a message to multiple recipients
and re-aggregates the responses back into a single message and send back to
client or mediates to the defined target sequence.