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 2012/01/05 09:33:27 UTC

svn commit: r1227523 - in /synapse/branches/2.1/src/site/xdoc/userguide/samples: sample700.xml sample701.xml sample702.xml

Author: hiranya
Date: Thu Jan  5 08:33:27 2012
New Revision: 1227523

URL: http://svn.apache.org/viewvc?rev=1227523&view=rev
Log:
Some minor edits in the documentation

Modified:
    synapse/branches/2.1/src/site/xdoc/userguide/samples/sample700.xml
    synapse/branches/2.1/src/site/xdoc/userguide/samples/sample701.xml
    synapse/branches/2.1/src/site/xdoc/userguide/samples/sample702.xml

Modified: synapse/branches/2.1/src/site/xdoc/userguide/samples/sample700.xml
URL: http://svn.apache.org/viewvc/synapse/branches/2.1/src/site/xdoc/userguide/samples/sample700.xml?rev=1227523&r1=1227522&r2=1227523&view=diff
==============================================================================
--- synapse/branches/2.1/src/site/xdoc/userguide/samples/sample700.xml (original)
+++ synapse/branches/2.1/src/site/xdoc/userguide/samples/sample700.xml Thu Jan  5 08:33:27 2012
@@ -24,8 +24,7 @@
     </properties>
     <body>
         <section name="Sample 700: Introduction to Synapse Message Stores">
-            <div class="xmlConf">
-                &lt;!-- Introduction to the Message Store --&gt;
+            <div class="xmlConf">&lt;!-- Introduction to the Message Store --&gt;
 &lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;sequence name="fault"&gt;
         &lt;log level="full"&gt;
@@ -50,8 +49,7 @@
         &lt;description&gt;The main sequence for the message mediation&lt;/description&gt;
     &lt;/sequence&gt;
     &lt;messageStore name="MyStore"/&gt;
-&lt;/definitions&gt;
-            </div>
+&lt;/definitions&gt;</div>
             <subsection name="Objective">
                 <p>
                     Introduction to Message Stores
@@ -61,11 +59,9 @@
                 <p>
                     <ul>
                         <li>
-                            Start Synapse using the configuration numbered 700
-                            (repository/conf/sample/synapse_sample_700.xml)
+                            Start Synapse using the configuration numbered 700 (repository/conf/sample/synapse_sample_700.xml)
                             <div class="command">
-                                Unix/Linux: sh synapse.sh -sample 700
-                                <br/>
+                                Unix/Linux: sh synapse.sh -sample 700<br/>
                                 Windows: synapse.bat -sample 700
                             </div>
                         </li>
@@ -76,34 +72,29 @@
                 <p>
                     First execute the sample client as follows.
                 </p>
-                <div class="command">ant stockquote
-                    -Daddurl=http://localhost:9000/services/SimpleStockQuoteService
-                    -Dtrpurl=http://localhost:8280/ -Dmode=placeorder
+                <div class="command">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=placeorder
                 </div>
                 <p>
                     When you execute the client the message will be dispatched to the main sequence.
                     In the Main sequence store mediator will store the placeOrder request message in
-                    the "MyStore" Message Store
+                    the 'MyStore' Message Store.
                 </p>
                 <p>
-                    Now you can use the JMX view of the Synapse message store to see the message
-                    stored in the dead letter channel and manually retry on them.
+                    Now you can use the JMX view of the Synapse message store to see the messages
+                    stored in the dead letter channel and manually perform retries on them.
                 </p>
-                <p>Before Storing the message store mediator will invoke the sequence
-                    :onStoreSequence. See the log
+                <p>
+                    Before storing the message, store mediator will invoke the sequence named
+                    'onStoreSequence'. You should see something similar to the following in the
+                    log.
                 </p>
-                <p>INFO - LogMediator To: http://localhost:9000/services/SimpleStockQuoteService,
+                <div class="command">
+                    INFO - LogMediator To: http://localhost:9000/services/SimpleStockQuoteService,
                     WSAction: urn:placeOrder, SOAPAction: urn:placeOrder, ReplyTo:
                     http://www.w3.org/2005/08/addressing/none, MessageID:
                     urn:uuid:54f0e7c6-7b43-437c-837e-a825d819688c, Direction: request, On-Store =
                     Storing message
-                </p>
-
-
-                <p>You can then use the JMX view of Synapse Message Store by using the jconsole and
-                    view the stored
-                    Messages and delete them.
-                </p>
+                </div>
             </subsection>
         </section>
         <p>

Modified: synapse/branches/2.1/src/site/xdoc/userguide/samples/sample701.xml
URL: http://svn.apache.org/viewvc/synapse/branches/2.1/src/site/xdoc/userguide/samples/sample701.xml?rev=1227523&r1=1227522&r2=1227523&view=diff
==============================================================================
--- synapse/branches/2.1/src/site/xdoc/userguide/samples/sample701.xml (original)
+++ synapse/branches/2.1/src/site/xdoc/userguide/samples/sample701.xml Thu Jan  5 08:33:27 2012
@@ -24,8 +24,7 @@
     </properties>
     <body>
         <section name="Sample 701: Introduction to Message Sampling Processor">
-            <div class="xmlConf">
-              &lt;!-- Introduction to Message Sampling Processor --&gt;
+            <div class="xmlConf">&lt;!-- Introduction to Message Sampling Processor --&gt;
 &lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;sequence name="send_seq"&gt;
         &lt;send&gt;
@@ -55,8 +54,7 @@
         &lt;parameter name="interval"&gt;20000&lt;/parameter&gt;
         &lt;parameter name="sequence"&gt;send_seq&lt;/parameter&gt;
     &lt;/messageProcessor&gt;
-&lt;/definitions&gt;
-            </div>
+&lt;/definitions&gt;</div>
             <subsection name="Objective">
                 <p>
                     Introduction to Message Sampling Processor
@@ -66,14 +64,12 @@
                 <p>
                     <ul>
                         <li>
-                            Start the SimpleStockQuoteService if its not already started
+                            Deploy the SimpleStockQuoteService in the sample Axis2 server and start Axis2
                         </li>
                         <li>
-                            Start Synapse using the configuration numbered 701
-                            (repository/conf/sample/synapse_sample_701.xml)
+                            Start Synapse using the configuration numbered 701 (repository/conf/sample/synapse_sample_701.xml)
                             <div class="command">
-                                Unix/Linux: sh synapse.sh -sample 701
-                                <br/>
+                                Unix/Linux: sh synapse.sh -sample 701<br/>
                                 Windows: synapse.bat -sample 701
                             </div>
                         </li>
@@ -84,24 +80,21 @@
                 <p>
                     Execute the Client few times with command :
                 </p>
-                <div class="command">ant stockquote
-                    -Daddurl=http://localhost:9000/services/SimpleStockQuoteService
-                    -Dtrpurl=http://localhost:8280/ -Dmode=placeorder
+                <div class="command">ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=placeorder
                 </div>
 
-                <p>When you execute the client the message will be dispatched to the main sequence.
+                <p>
+                    When you execute the client the message will be dispatched to the main sequence.
                     In the Main sequence store mediator will store the placeOrder request message in
-                    the
-                    "MyStore" Message Store
+                    the 'MyStore' message store.
                 </p>
-
-                <p>Message Processor will consume the messages and forward to the send_seq sequence
-                    in
-                    configured rate.
-                </p>
-                <p>You will observe that service invocation rate is not changing when increasing the
-                    rate we
-                    execute the client.
+                <p>
+                    Message Processor will consume the messages and forward to the 'send_seq' sequence
+                    in the configured rate.
+                </p>
+                <p>
+                    You will observe that service invocation rate is not changing when increasing the
+                    rate at which we execute the client.
                 </p>
             </subsection>
         </section>

Modified: synapse/branches/2.1/src/site/xdoc/userguide/samples/sample702.xml
URL: http://svn.apache.org/viewvc/synapse/branches/2.1/src/site/xdoc/userguide/samples/sample702.xml?rev=1227523&r1=1227522&r2=1227523&view=diff
==============================================================================
--- synapse/branches/2.1/src/site/xdoc/userguide/samples/sample702.xml (original)
+++ synapse/branches/2.1/src/site/xdoc/userguide/samples/sample702.xml Thu Jan  5 08:33:27 2012
@@ -24,8 +24,7 @@
     </properties>
     <body>
         <section name="Sample 702: Introduction to Message Forwarding Processor">
-            <div class="xmlConf">
-                &lt;!-- Introduction to Scheduled Message Forwarding Processor --&gt;
+            <div class="xmlConf">&lt;!-- Introduction to Scheduled Message Forwarding Processor --&gt;
 &lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;endpoint name="StockQuoteServiceEp"&gt;
@@ -71,11 +70,9 @@
                 <p>
                     <ul>
                         <li>
-                            Start Synapse using the configuration numbered 702
-                            (repository/conf/sample/synapse_sample_702.xml)
+                            Start Synapse using the configuration numbered 702 (repository/conf/sample/synapse_sample_702.xml)
                             <div class="command">
-                                Unix/Linux: sh synapse.sh -sample 702
-                                <br/>
+                                Unix/Linux: sh synapse.sh -sample 702<br/>
                                 Windows: synapse.bat -sample 702
                             </div>
                         </li>
@@ -84,29 +81,26 @@
             </subsection>
             <subsection name="Executing the Client">
                 <p>
-                    Execute the Client few times with command :
+                    Execute the sample client a few times with the following command. Note that
+                    we still haven't started the sample Axis2 server.
                 </p>
-                <div class="command">ant stockquote
-                    -Daddurl=http://localhost:9000/services/SimpleStockQuoteService
-                    -Dtrpurl=http://localhost:8280/ -Dmode=placeorder
+                <div class="command">
+                    ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=placeorder
                 </div>
 
-                <p>Now Start the SimpleStockQuoteService</p>
-                <p>When you Start the service you will see message getting delivered to the service.
-                    Even
-                    though service is down when we invoke it from the client
-                </p>
-                <p>Here in the Main sequence store mediator will store the placeOrder request
-                    message in the
-                    "MyStore" Message Store
-                </p>
-                <p>Message Processor will send the message to the endpoint configured as a message
-                    context
-                    property.
-                </p>
-                <p>Message processor will remove the message from the store only if message
-                    delivered
-                    successfully
+                <p>
+                    Deploy the SimpleStockQuoteService in the sample Axis2 server and start Axis2.
+                </p>
+                <p>
+                    When you start the service you will see messages getting delivered to the service,
+                    even though the service was actually down when we invoked the sample client.
+                </p>
+                <p>
+                    Here in the 'main' sequence store mediator will store the placeOrder request
+                    message in the 'MyStore' message store. Message processor will send the message
+                    to the endpoint which is configured as a message context property. Message
+                    processor will remove the message from the store only if the message is delivered
+                    successfully.
                 </p>
             </subsection>
         </section>