Author: ruwan Date: Sun Jun 21 04:30:40 2009 New Revision: 39516 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=39516
Log: Documentation cleanup Modified: branches/esb/java/2.1/product/docs/site.xml branches/esb/java/2.1/product/docs/xdoc/samples/rule_samples.xml Modified: branches/esb/java/2.1/product/docs/site.xml URL: http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/docs/site.xml?rev=39516&r1=39515&r2=39516&view=diff ============================================================================== --- branches/esb/java/2.1/product/docs/site.xml (original) +++ branches/esb/java/2.1/product/docs/site.xml Sun Jun 21 04:30:40 2009 @@ -75,19 +75,19 @@ <item name="Endpoints" href="samples/endpoint_mediation_samples.html"/> <item name="QoS Mediation" href="samples/qos_mediation_samples.html"/> <item name="Proxy Services" href="samples/proxy_samples.html"/> - <item name="Proxy QoS" href="samples/qos_proxy_samples.html"/> + <item name="QoS Proxies" href="samples/qos_proxy_samples.html"/> <item name="Transports" href="samples/transport_samples.html"/> <item name="Tasks" href="samples/task_samples.html"/> <item name="Advanced Mediation" href="samples/advanced_mediation_samples.html"/> <item name="Eventing" href="samples/eventing_samples.html"/> + <item name="Rules" href="samples/rule_samples.html"/> </menu> <menu name="Resources"> + <item name="FAQ's" href="faq.html"/> <item name="Java Docs" href="http://ws.apache.org/synapse/apidocs/index.html"/> - <item name="Wiki" href="http://wso2.org/wiki/display/esbjava"/> - <!--<item name="FAQ" href="faq.html"/>--> - <!--<item name="Articles" href="articles.html"/>--> <item name="Forum" href="http://wso2.org/forum/187"/> <item name="Library" href="http://wso2.org/library/esb"/> + <item name="Wiki" href="http://wso2.org/wiki/display/esbjava"/> </menu> <menu name="Get Involved"> Modified: branches/esb/java/2.1/product/docs/xdoc/samples/rule_samples.xml URL: http://wso2.org/svn/browse/wso2/branches/esb/java/2.1/product/docs/xdoc/samples/rule_samples.xml?rev=39516&r1=39515&r2=39516&view=diff ============================================================================== --- branches/esb/java/2.1/product/docs/xdoc/samples/rule_samples.xml (original) +++ branches/esb/java/2.1/product/docs/xdoc/samples/rule_samples.xml Sun Jun 21 04:30:40 2009 @@ -30,8 +30,6 @@ <h2>Introduction</h2> -<p></p> - <p>Rule mediator just pass the values extracted from the SOAP envelope, the Message Context, the registry to the rule engine and let to rule engine to take decision. Rule mediator defines the <strong>inputs</strong> (with in input tag) @@ -55,10 +53,10 @@ mediators. Then,what happens is , just pass the control to the next sibling mediator. </p> -<h2 id="Sample">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.xm7">synapse_sample_600.xml</h4> +<h4 id="synapse.xml_600">synapse_sample_600.xml</h4> <pre><!-- Simple rule based routing of messages - same as filter mediator --> <definitions xmlns="http://ws.apache.org/ns/synapse"> @@ -140,8 +138,6 @@ </div> <pre> ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=IBM</pre> -<p></p> - <p>Then, you will get stock quote price in client side.</p> <p>In this sample , with in the rule mediator , the value which is extracted @@ -172,10 +168,10 @@ "IBM".</p> </div> -<h2 id="Sample1">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.xm1">synapse_sample_601.xml</h4> +<h4 id="synapse.xml_601">synapse_sample_601.xml</h4> <pre> <!-- Simple rule based routing of messages - same as filter mediator --> <<definitions xmlns="http://ws.apache.org/ns/synapse"> @@ -261,19 +257,14 @@ Start the Axis2 server and deploy the SimpleStockQuoteService if not already deployed</p> -<p></p> - <p>Please tests this sample same as above (600) sample because this has same functionality as above one.</p> -<p></p> - -<h2 id="Sample2">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.xm2"><strong>synapse_sample_602.xml</strong></h4> +<h4 id="synapse.xml_602"><strong>synapse_sample_602.xml</strong></h4> -<p></p> <pre><!-- Simple rule based routing of messages - same as filter mediator --> <!-- The use of Drools native language --> @@ -328,7 +319,6 @@ <h4 id="rule1"><strong><bdo dir="ltr">rule script - simple_rule_base.drl </bdo></strong></h4> -<p></p> <pre><drl> <![CDATA[ package SimpleRoutingRules; @@ -363,15 +353,13 @@ Start the Axis2 server and deploy the SimpleStockQuoteService if not already deployed</p> -<p></p> - <p>Please tests this sample same as sample 600 because this has same functionality as it.</p> -<h2 id="Sample3">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.xm3"><strong>synapse_sample_603.xml</strong></h4> +<h4 id="synapse.xml_603"><strong>synapse_sample_603.xml</strong></h4> <pre><!-- Advance rule based routing - Switching routing decision from rules --> <definitions xmlns="http://ws.apache.org/ns/synapse"> <!-- the SimpleURLRegistry allows access to a URL based registry (e.g. file:/// or http://) --> @@ -451,7 +439,6 @@ <h4 id="rule2"><strong>rule script - advanced_rule_base.xml </strong></h4> -<p></p> <pre><package name="AdvancedRoutingRules" xmlns="http://drools.org/drools-5.0" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" @@ -522,8 +509,6 @@ <p>Start the Axis2 server and deploy the SimpleStockQuoteService if not already deployed </p> -<p></p> - <p>This sample shows how can rule mediator act as Switch mediator. In this sample, the use of input with type <strong>'sequence'</strong> is being introducing. The type 'sequence' indicates the synapse sequences. This enables @@ -564,10 +549,10 @@ <div> </div> -<h2 id="Sample4">Sample 604 Simple message transformation - Rule mediator for +<h2 id="Sample604">Sample 604 Simple message transformation - Rule mediator for message transformation</h2> -<h4 id="synapse.xm4"><strong>synapse_sample_604.xml</strong></h4> +<h4 id="synapse.xml_604"><strong>synapse_sample_604.xml</strong></h4> <pre><!-- Simple rule based transformation (changing message ) --> <definitions xmlns="http://ws.apache.org/ns/synapse"> @@ -611,7 +596,6 @@ <h4 id="rule3"><strong>rule script - always_ibm.xml </strong></h4> -<p></p> <pre><package name="SimpleMessageTransformationRules" xmlns="http://drools.org/drools-5.0" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" @@ -652,18 +636,12 @@ <p>Start the Axis2 server and deploy the SimpleStockQuoteService if not already deployed</p> -<p></p> - <p>In this sample , a simple transformation is happened . If the symbol is either SUN or MSFT , then it will changed into IBM in the SOAP envelope and then invoke the external service.</p> -<p></p> - <p>Run client as </p> <pre>ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=MSFT</pre> -<pre></pre> - <p>Or as </p> <pre>ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dsymbol=SUN</pre> @@ -673,11 +651,9 @@ <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> -<p></p> +<h2 id="Sample605">Sample 605 Simple message transformation </h2> -<h2 id="Sample5">Sample 605 Simple message transformation </h2> - -<h4 id="synapse.xm5"><strong>synapse_sample_605.xml</strong></h4> +<h4 id="synapse.xml_605"><strong>synapse_sample_605.xml</strong></h4> <pre><!-- Simple rule based transformation (changing message ) --> <definitions xmlns="http://ws.apache.org/ns/synapse"> <!-- the SimpleURLRegistry allows access to a URL based registry (e.g. file:/// or http://) --> @@ -723,7 +699,6 @@ <h4 id="rule4"><strong>rule script - commission_rule.xml </strong></h4> -<p></p> <pre><package name="SimpleMessageTransformationRules" xmlns="http://drools.org/drools-5.0" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" @@ -784,10 +759,10 @@ <pre> Standard :: Stock price = $3082.1975970450094</pre> </div> -<h2 id="Sample6">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.xm6"><strong>synapse_sample_606.xml</strong></h4> +<h4 id="synapse.xml_606"><strong>synapse_sample_606.xml</strong></h4> <pre><!-- Transformation with custom Java object --> <definitions xmlns="http://ws.apache.org/ns/synapse"> @@ -873,7 +848,6 @@ <h4 id="rule5"><strong>rule script for request transformation - tranform_forward_rule.drl </strong></h4> -<p></p> <pre><drl> <![CDATA[ package ForwardTransformation; @@ -958,15 +932,11 @@ in the synapse (esb) samples). Both of the request and response are transformed.</p> -<p></p> - <p>In this sample , use CUTOM Java objects to archive the easy transformation. if the the toString() method returns a valid XML , it is possible to attached it into SOPA envelope. It is same concepts as serializing object into XML . In the sample used following Java Objects</p> -<p></p> - <p><strong>For input transformation</strong></p> <pre> package samples; @@ -1038,6 +1008,5 @@ <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> -<p></p> </body> </html> _______________________________________________ Esb-java-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev
