Author: hiranya
Date: Fri Sep 24 05:54:29 2010
New Revision: 1000716
URL: http://svn.apache.org/viewvc?rev=1000716&view=rev
Log:
Documentation fixes
Modified:
synapse/branches/2.0/src/site/xdoc/Synapse_Samples.xml
Modified: synapse/branches/2.0/src/site/xdoc/Synapse_Samples.xml
URL:
http://svn.apache.org/viewvc/synapse/branches/2.0/src/site/xdoc/Synapse_Samples.xml?rev=1000716&r1=1000715&r2=1000716&view=diff
==============================================================================
--- synapse/branches/2.0/src/site/xdoc/Synapse_Samples.xml (original)
+++ synapse/branches/2.0/src/site/xdoc/Synapse_Samples.xml Fri Sep 24 05:54:29
2010
@@ -263,7 +263,7 @@
<li>
<a href="#Sample364">Sample 364: Executing database Stored
Procedures</a></li></ul></li>
<li>
-<a href="#Throttle">Throtteling messages (Throttle Mediator)</a>
+<a href="#Throttle">Throttling messages (Throttle Mediator)</a>
<ul>
<li>
<a href="#Sample370">Sample 370: Introduction to throttle mediator and
concurrency throttling</a></li>
@@ -296,7 +296,7 @@
<li>
<a href="#Sample420">Sample 420: Simple cache implemented on Synapse for the
actual service</a></li></ul></li>
<li>
-<a href="#Callout">Synchronize web service invocation with Callout mediator</a>
+<a href="#Callout">Synchronized Web Service invocations with Callout
mediator</a>
<ul>
<li>
<a href="#Sample430">Sample 430: Simple Callout Mediator for synchronize web
service invocation</a></li>
@@ -530,7 +530,9 @@
<switch source="//m0:getQuote/m0:request/m0:symbol"
xmlns:m0="http://services.samples">
<case regex="IBM">
<send>
- <endpoint><address
uri="http://localhost:9000/services/SimpleStockQuoteService"/></endpoint>
+ <endpoint>
+ <address
uri="http://localhost:9000/services/SimpleStockQuoteService"/>
+ </endpoint>
</send>
</case>
<case regex="MSFT">
@@ -550,11 +552,11 @@
</out>
</sequence>
-<sequence name="sunSequence"
onError="sunErrorHandler">
+ <sequence name="sunSequence"
onError="sunErrorHandler">
<send>
<endpoint key="sunPort"/>
</send>
-</sequence>
+ </sequence>
</definitions> </pre>
<p>
@@ -1061,11 +1063,10 @@ Content-ID:
</definitions></pre>
<p>
<strong>Objective: Demonstrate the simple load balancing among a set of
endpoints</strong> </p>
-<p>
-<strong>Prerequisites:</strong> </p>
-<p>Start Synapse with sample configuration 52. (i.e. synapse -sample 52) </p>
-<p>Deploy the LoadbalanceFailoverService by switching to <Synapse
installation directory>/samples/axis2Server/src/LoadbalanceFailoverService
directory and running ant. </p>
-<p>Start three instances of sample Axis2 server on HTTP ports 9001, 9002 and
9003 and give some unique names to each server. </p>
+<strong>Prerequisites:</strong>
+<br/>Start Synapse with sample configuration 52. (i.e. synapse -sample 52)
+<br/>Deploy the LoadbalanceFailoverService by switching to <Synapse
installation directory>/samples/axis2Server/src/LoadbalanceFailoverService
directory and running ant.
+<br/>Start three instances of sample Axis2 server on HTTP ports 9001, 9002 and
9003 and give some unique names to each server.
<p>Example commands to run sample Axis2 servers from the <Synapse
installation directory>/samples/axis2Server directory in Linux are listed
below: </p>
<pre xml:space="preserve">./axis2server.sh -http 9001 -https 9005 -name
MyServer1
./axis2server.sh -http 9002 -https 9006 -name MyServer2
@@ -1122,7 +1123,7 @@ Content-ID:
</failover>
</endpoint>
</send>
-<drop/>
+ <drop/>
</in>
<out>
@@ -1142,10 +1143,9 @@ Content-ID:
</definitions></pre>
<p>
<strong>Objective: Demonstrate the failover sending</strong> </p>
-<p>
-<strong>Prerequisites:</strong> </p>
-<p>Start Synapse with sample configuration 53 (i.e. synapse -sample 53) </p>
-<p>Deploy the LoadbalanceFailoverService and start three instances of sample
Axis2 server as mentioned in sample 52. </p>
+<strong>Prerequisites:</strong>
+<br/>Start Synapse with sample configuration 53 (i.e. synapse -sample 53)
+<br/>Deploy the LoadbalanceFailoverService and start three instances of sample
Axis2 server as mentioned in sample 52.
<p></p>
<p>Above configuration sends messages with the failover behavior. Initially
the server at port 9001 is treated as primary and other two are treated as
backups. Messages are always directed only to the primary server. If the
primary server has failed, next listed server is selected as the primary. Thus,
messages are sent successfully as long as there is at least one active server.
To test this, run the loadbalancefailover client to send infinite requests as
follows: </p>
<pre xml:space="preserve">ant loadbalancefailover</pre>
@@ -1173,7 +1173,7 @@ Content-ID:
<!-- specify the session as the simple client session
provided by Synapse for
testing purpose -->
-<strong><session type="simpleClientSession"/></strong>
+ <strong><session
type="simpleClientSession"/></strong>
<loadbalance>
<endpoint>
@@ -1194,7 +1194,7 @@ Content-ID:
</loadbalance>
</endpoint>
</send>
-<drop/>
+ <drop/>
</in>
<out>
@@ -1245,7 +1245,7 @@ Content-ID:
<!-- specify the session as the simple client session
provided by Synapse for
testing purpose -->
-<strong><session type="simpleClientSession"/></strong>
+ <strong><session
type="simpleClientSession"/></strong>
<loadbalance>
<endpoint>
@@ -1279,7 +1279,7 @@ Content-ID:
</loadbalance>
</endpoint>
</send>
-<drop/>
+ <drop/>
</in>
<out>
@@ -4731,9 +4731,6 @@ values by executing XPath expressions. T
<h2>
<a name="Sample501" id="Sample501">Sample 501: EventSource with static
subscriptions</a>
</h2>
- <p>
-  
- </p>
<pre xml:space="preserve"><!-- Eventing configuration with static
subscriptions-->
<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
<eventSource name="SampleEventSource">
@@ -4971,12 +4968,9 @@ values by executing XPath expressions. T
</p>
</div>
- <h2>
+ <h2>
<a name="Sample650" id="Sample650">Sample 650: Priority Based Message
Mediation</a>
- </h2>
- <p>
-  
- </p>
+ </h2>
<pre xml:space="preserve"><definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuraiton">
<priorityExecutor name="exec">
<queues>
@@ -5073,10 +5067,7 @@ values by executing XPath expressions. T
<h2>
<a name="Sample651" id="Sample651">Sample 651: NHTTP Transport
Priority Based Dispatching</a>
- </h2>
- <p>
-  
- </p>
+ </h2>
<p>
Here is the priority configuration file used by the NHTTP transport to
determine the priority based on HTTP level properties.
</p>
@@ -5279,8 +5270,8 @@ values by executing XPath expressions. T
<a name="Sample700" id="Sample700">Sample 700: Introduction Message
Store</a></h2>
<pre xml:space="preserve"><!-- Introduction to the Synapse Message
Store -->
<definitions
xmlns="http://synapse.apache.org/ns/2010/04/configuration">
- <!--Simple in Memory Message Store with name foo -->
- <messageStore name="foo" sequence="bar">
+ <!--Simple in Memory Message Store with name foo -->
+ <messageStore name="foo" sequence="bar">
<redelivery>
<!--retry interval 1 sec -->
<interval>1</interval>
@@ -5292,13 +5283,15 @@ values by executing XPath expressions. T
</messageStore>
<!-- filtering of messages with XPath and regex matches -->
- <filter source="get-property('To')" regex=".*/StockQuote.*">
- <send>
- <endpoint key="SampleEndpoint"/>
- </send>
- <drop/>
- </filter>
- <send/>
+ <sequence name="main">
+ <filter source="get-property('To')" regex=".*/StockQuote.*">
+ <send>
+ <endpoint key="SampleEndpoint"/>
+ </send>
+ <drop/>
+ </filter>
+ <send/>
+ </sequence>
<!-- Endpoint named SampleEndpoint-->
<endpoint name="SampleEndpoint" onFault="foo">
@@ -5314,14 +5307,12 @@ values by executing XPath expressions. T
</pre>
<p>
<strong>Objective: </strong>Introduction to Synapse Message Stores</p>
- <p>
- <strong>Prerequisites</strong>:Start the Synapse configuration numbered
700: i.e. synapse -sample 700 </p>
- <p>Start the Axis2 server and deploy the SimpleStockQuoteService if not
already done. </p>
+ <strong>Prerequisites</strong>:
+ <br/>Start the Synapse configuration numbered 700: i.e. synapse -sample 700
+ <br/>Start the Axis2 server and deploy the SimpleStockQuoteService if not
already done.
<p></p>
<p>To Execute the Client : </p>
-
- <pre xml:space="preserve">ant stockquote
-Dtrpurl=http://localhost:8280/soap/StockQuote </pre>
- <p></p>
+ <pre xml:space="preserve">ant stockquote
-Dtrpurl=http://localhost:8280/soap/StockQuote</pre>
<p>Since now you have the Axis2 Server Running when you run the client you
will get the Stock
generation output in Server console and the out put in the client
side. Then try shutting down
the Axis2 Server and running again. You will see synapse will try 2
times to deliver the message