Author: indika
Date: Mon Jul  6 22:24:22 2009
New Revision: 40902
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=40902

Log:
rule_samples document fix 

Modified:
   trunk/esb/java/docs/xdoc/samples/rule_samples.xml

Modified: trunk/esb/java/docs/xdoc/samples/rule_samples.xml
URL: 
http://wso2.org/svn/browse/wso2/trunk/esb/java/docs/xdoc/samples/rule_samples.xml?rev=40902&r1=40901&r2=40902&view=diff
==============================================================================
--- trunk/esb/java/docs/xdoc/samples/rule_samples.xml   (original)
+++ trunk/esb/java/docs/xdoc/samples/rule_samples.xml   Mon Jul  6 22:24:22 2009
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
+<?xml version="1.0" encoding="iso-8859-1"?>
 <!--
   ~  Copyright (c) 2009, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
   ~
@@ -16,7 +16,6 @@
   ~  specific language governing permissions and limitations
   ~  under the License.
   -->
-        
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
 <html xmlns="http://www.w3.org/1999/xhtml";>
@@ -53,10 +52,8 @@
 mediators. Then,what happens is , just pass the control to the next sibling
 mediator. </p>
 
-<h2 id="Sample600">Sample 600 Rule mediator as a Filter - Simple rule based
+<h2 id="Sample600">Sample 600 : Rule mediator as a Filter - Simple rule based
 routing (Using an in-lined rule script)</h2>
-
-<h4 id="synapse.xml_600">synapse_sample_600.xml</h4>
 <pre>&lt;!-- Simple rule based routing  of messages - same as filter mediator 
--&gt;
 &lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
@@ -124,8 +121,8 @@
 <p><strong>Objective</strong>: Introduction to simple rule based routing </p>
 
 <p><strong>Prerequisites:</strong><br />
-Start the Synapse configuration numbered 600: (i.e. ./wso2server.sh
--Desb.sample=600)</p>
+Start the Synapse configuration numbered 600: (i.e. ./wso2esb-samples.sh -sn
+600)</p>
 
 <p>Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 deployed.</p>
@@ -168,12 +165,9 @@
 "IBM".</p>
 </div>
 
-<h2 id="Sample601">Sample 601 Rule mediator as a Filter - Simple rule based
+<h2 id="Sample601">Sample 601: Rule mediator as a Filter - Simple rule based
 routing (Using rule script from registry)</h2>
-
-<h4 id="synapse.xml_601">synapse_sample_601.xml</h4>
-<pre> 
-&lt;!-- Simple rule based routing  of messages - same as filter mediator --&gt;
+<pre>&lt;!-- Simple rule based routing  of messages - same as filter mediator 
--&gt;
 &lt;&lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
 
     &lt;!-- the SimpleURLRegistry allows access to a URL based registry (e.g. 
file:/// or http://) --&gt;
@@ -252,19 +246,16 @@
 <p><strong>Objective</strong>: Introduction to simple rule based routing </p>
 
 <p><strong>Prerequisites:</strong><br />
-Start the Synapse configuration numbered 601: (i.e. ./wso2server.sh
--Desb.sample=601)<br />
+Start the Synapse configuration numbered 601: (i.e. ./wso2esb-samples.sh -sn
+601)<br />
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 deployed</p>
 
 <p>Please tests this sample same as above (600) sample because this has same
 functionality as above one.</p>
 
-<h2 id="Sample602">Sample 602 Rule mediator as a Filter - Simple rule based
+<h2 id="Sample602">Sample 602 : Rule mediator as a Filter - Simple rule based
 routing (Using an Drools native language </h2>
-
-<h4 id="synapse.xml_602"><strong>synapse_sample_602.xml</strong></h4>
-
 <pre>&lt;!--  Simple rule based routing  of messages - same as filter mediator 
--&gt;
 &lt;!-- The use of Drools native language --&gt;
 
@@ -318,7 +309,6 @@
 
 <h4 id="rule1"><strong><bdo dir="ltr">rule script - simple_rule_base.drl
 </bdo></strong></h4>
-
 <pre>&lt;drl&gt;
     &lt;![CDATA[
 package SimpleRoutingRules;
@@ -348,18 +338,16 @@
 Drools native language )</p>
 
 <p><strong>Prerequisites:</strong><br />
-Start the Synapse configuration numbered 602: (i.e. ./wso2server.sh
--Desb.sample=602)<br />
+Start the Synapse configuration numbered 602: (i.e. ./wso2esb-samples.sh -sn
+602)<br />
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 deployed</p>
 
 <p>Please tests this sample same as sample 600 because this has same
 functionality as it.</p>
 
-<h2 id="Sample603">Sample 603 Advance rule based routing - Switching routing
+<h2 id="Sample603">Sample 603 : Advance rule based routing - Switching routing
 decision according to the rules - Rule mediator as Switch mediator </h2>
-
-<h4 id="synapse.xml_603"><strong>synapse_sample_603.xml</strong></h4>
 <pre>&lt;!-- Advance rule based routing - Switching routing decision from 
rules  --&gt;
 &lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;!-- the SimpleURLRegistry allows access to a URL based registry (e.g. 
file:/// or http://) --&gt;
@@ -438,7 +426,6 @@
 &lt;/definitions&gt;</pre>
 
 <h4 id="rule2"><strong>rule script - advanced_rule_base.xml </strong></h4>
-
 <pre>&lt;package name="AdvancedRoutingRules"
          xmlns="http://drools.org/drools-5.0";
          xmlns:xs="http://www.w3.org/2001/XMLSchema-instance";
@@ -503,8 +490,8 @@
 decision according to the rules - Rule mediator as Switch mediator. </p>
 
 <p><strong>Prerequisites:</strong><br />
-Start the Synapse configuration numbered 603: i.e. (i.e. ./wso2server.sh
--Desb.sample=603)</p>
+Start the Synapse configuration numbered 603: i.e. (i.e. ./wso2esb-samples.sh
+-sn 603)</p>
 
 <p>Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 deployed </p>
@@ -549,10 +536,8 @@
 <div>
 </div>
 
-<h2 id="Sample604">Sample 604 Simple message transformation - Rule mediator for
-message transformation</h2>
-
-<h4 id="synapse.xml_604"><strong>synapse_sample_604.xml</strong></h4>
+<h2 id="Sample604">Sample 604 : Simple message transformation - Rule mediator
+for message transformation</h2>
 <pre>&lt;!-- Simple rule based transformation (changing message )  --&gt;
 
 &lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
@@ -595,7 +580,6 @@
 &lt;/definitions&gt;</pre>
 
 <h4 id="rule3"><strong>rule script - always_ibm.xml </strong></h4>
-
 <pre>&lt;package name="SimpleMessageTransformationRules"
          xmlns="http://drools.org/drools-5.0";
          xmlns:xs="http://www.w3.org/2001/XMLSchema-instance";
@@ -630,8 +614,8 @@
 
 <p><strong>Prerequisites:</strong></p>
 
-<p>Start the Synapse configuration numbered 604: (i.e. ./wso2server.sh
--Desb.sample=604)</p>
+<p>Start the Synapse configuration numbered 604: (i.e. ./wso2esb-samples.sh -sn
+604)</p>
 
 <p>Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 deployed</p>
@@ -642,6 +626,7 @@
 
 <p>Run client as </p>
 <pre>ant stockquote 
-Daddurl=http://localhost:9000/services/SimpleStockQuoteService 
-Dtrpurl=http://localhost:8280/ -Dsymbol=MSFT</pre>
+
 <p>Or as </p>
 <pre>ant stockquote 
-Daddurl=http://localhost:9000/services/SimpleStockQuoteService 
-Dtrpurl=http://localhost:8280/ -Dsymbol=SUN</pre>
 
@@ -651,9 +636,7 @@
 <p>Then check the axis2server log or console . </p>
 <pre>Mon Mar 03 16:33:05 IST 2008 samples.services.SimpleStockQuoteService :: 
Generating quote for : IBM</pre>
 
-<h2 id="Sample605">Sample 605 Simple message transformation </h2>
-
-<h4 id="synapse.xml_605"><strong>synapse_sample_605.xml</strong></h4>
+<h2 id="Sample605">Sample 605 : Simple message transformation </h2>
 <pre>&lt;!-- Simple rule based transformation (changing message ) --&gt;
 &lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;!-- the SimpleURLRegistry allows access to a URL based registry (e.g. 
file:/// or http://) --&gt;
@@ -698,7 +681,6 @@
 &lt;/definitions&gt;</pre>
 
 <h4 id="rule4"><strong>rule script - commission_rule.xml </strong></h4>
-
 <pre>&lt;package name="SimpleMessageTransformationRules"
          xmlns="http://drools.org/drools-5.0";
          xmlns:xs="http://www.w3.org/2001/XMLSchema-instance";
@@ -737,8 +719,8 @@
 
 <p><strong>Prerequisites:</strong></p>
 
-<p>Start the Synapse configuration numbered 605: (i.e. ./wso2server.sh
--Desb.sample=605)<br />
+<p>Start the Synapse configuration numbered 605: (i.e. ./wso2esb-samples.sh -sn
+605)<br />
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 deployed.</p>
 
@@ -759,10 +741,8 @@
 <pre> Standard :: Stock price = $3082.1975970450094</pre>
 </div>
 
-<h2 id="Sample606">Sample 606 Advanced transformation and use of custom Java
+<h2 id="Sample606">Sample 606 : Advanced transformation and use of custom Java
 objects </h2>
-
-<h4 id="synapse.xml_606"><strong>synapse_sample_606.xml</strong></h4>
 <pre>&lt;!-- Transformation with custom Java object --&gt;
 
 &lt;definitions xmlns="http://ws.apache.org/ns/synapse"&gt;
@@ -847,7 +827,6 @@
 
 <h4 id="rule5"><strong>rule script for request transformation -
 tranform_forward_rule.drl </strong></h4>
-
 <pre>&lt;drl&gt;
     &lt;![CDATA[
 package ForwardTransformation;
@@ -917,14 +896,17 @@
 
 <p><strong>Prerequisites:</strong></p>
 
-<p>Start the Synapse configuration numbered 606: (i.e. ./wso2server.sh
--Desb.sample=606)<br />
+<p>Start the Synapse configuration numbered 606: (i.e. ./wso2esb-samples.sh -sn
+606)<br />
 Start the Axis2 server and deploy the SimpleStockQuoteService if not already
 deployed.</p>
-    <p>The classes <strong>GetQuoteRequest.java</strong> and 
<strong>CheckPriceResponse.java</strong> which are shown in bellow,
-        have to be compiled and put in classpath. Easy way may be putting as a 
jar inside
-        <strong>lid/extensions</strong>. Pleas note that these classes need to 
be group to package <strong>samples</strong>.
-    </p>
+
+<p>The classes <strong>GetQuoteRequest.java</strong> and
+<strong>CheckPriceResponse.java</strong> which are shown in bellow, have to be
+compiled and put in classpath. Easy way may be putting as a jar inside
+<strong>repository/components/lib</strong>. Pleas note that these classes need
+to be group to package <strong>samples</strong>. </p>
+
 <p>This sample also illustrates a advanced transformation using rule mediator.
 </p>
 
@@ -938,8 +920,7 @@
 the sample used following Java Objects</p>
 
 <p><strong>For input transformation</strong></p>
-<pre>
- package samples;   
+<pre> package samples;   
  /**
  * Represents the  GetQuote Request   - only for sample demonstration
  */
@@ -966,8 +947,7 @@
 }</pre>
 
 <p><strong>For output transformation</strong></p>
-<pre>
- package samples;
+<pre> package samples;
  /**
  * Represents the  Check Price  Response   - only for sample demonstration
  */
@@ -999,14 +979,12 @@
                 "&lt;m1:Price&gt;" + price + "&lt;/m1:Price&gt;" +
                 "&lt;/m:CheckPriceResponse&gt;";
     }
-}
-</pre>
+}</pre>
 
 <p>This is just a example to show what kind of cool thing can be done using
 rule mediator. </p>
 
 <p>Runs the client in custom mode as follows </p>
 <pre>ant stockquote 
-Daddurl=http://localhost:9000/services/SimpleStockQuoteService 
-Dtrpurl=http://localhost:8280/ -Dmode=customquote</pre>
-
 </body>
 </html>

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to