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 2010/09/26 07:36:49 UTC
svn commit: r1001362 - in /synapse/branches/2.0:
repository/conf/sample/synapse_sample_351.xml
src/site/xdoc/Synapse_Samples.xml
Author: hiranya
Date: Sun Sep 26 05:36:48 2010
New Revision: 1001362
URL: http://svn.apache.org/viewvc?rev=1001362&view=rev
Log:
Fixing a sample
Modified:
synapse/branches/2.0/repository/conf/sample/synapse_sample_351.xml
synapse/branches/2.0/src/site/xdoc/Synapse_Samples.xml
Modified: synapse/branches/2.0/repository/conf/sample/synapse_sample_351.xml
URL: http://svn.apache.org/viewvc/synapse/branches/2.0/repository/conf/sample/synapse_sample_351.xml?rev=1001362&r1=1001361&r2=1001362&view=diff
==============================================================================
--- synapse/branches/2.0/repository/conf/sample/synapse_sample_351.xml (original)
+++ synapse/branches/2.0/repository/conf/sample/synapse_sample_351.xml Sun Sep 26 05:36:48 2010
@@ -27,7 +27,7 @@
<script language="js">
var symbol = mc.getPayloadXML()..*::Code.toString();
mc.setPayloadXML(
- <m:getQuote xmlns:m="http://services.samples/xsd">
+ <m:getQuote xmlns:m="http://services.samples">
<m:request>
<m:symbol>{symbol}</m:symbol>
</m:request>
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=1001362&r1=1001361&r2=1001362&view=diff
==============================================================================
--- synapse/branches/2.0/src/site/xdoc/Synapse_Samples.xml (original)
+++ synapse/branches/2.0/src/site/xdoc/Synapse_Samples.xml Sun Sep 26 05:36:48 2010
@@ -3058,9 +3058,16 @@ it will first try to read the content ty
<strong>Objective: Introduce the concept of tasks and how simple trigger works</strong> </p>
<p>
<strong>Prerequisites:</strong>
-<br/> Build the SimpleStockQuoteService as mentioned above and start the sample axis2 server before staring Synapse. </p>
-<p>When ever Synapse gets started with this configuration (i.e. ./synapse.sh -sample 300) and initialized, this task will run periodically in 5 second intervals. You could limit the number of times that you want to run this task by adding a count attribute with an integer as the value, if the count is not present as in this sample this task will run forever. </p>
-<p>One can write his own task class implementing the org.apache.synapse.startup.Task interface and implementing the execute method to do the task. For this particular sample we have used the MessageInjector which just injects a message specified into Synapse environment. </p>
+<br/> Build the SimpleStockQuoteService as mentioned above and start the sample Axis2 server
+<br/> Start Synapse using sample 300: ie synapse -sample 300</p>
+<p>When ever Synapse gets started with this configuration, a task will run periodically in 5 second
+ intervals. You could limit the number of times that you want to run this task by adding a count
+ attribute with an integer as the value, if the count is not present as in this sample this task
+ will run until the server is shutdown.</p>
+<p>One can write his/her own task class implementing the org.apache.synapse.startup.Task interface and
+ implementing the execute method to run the necessary logic. For this particular sample we have used the
+ MessageInjector class which just injects a message specified into Synapse environment. </p>
+
<h1>
<a name="AdvancedMediation" id="AdvancedMediation">Advanced mediations with advanced mediators</a> </h1>
<h2>
@@ -3107,7 +3114,7 @@ it will first try to read the content ty
function transformRequest(mc) {
var symbol = mc.getPayloadXML()..*::Code.toString();
mc.setPayloadXML(
- <m:getQuote xmlns:m="http://services.samples/xsd">
+ <m:getQuote xmlns:m="http://services.samples">
<m:request>
<m:symbol>{symbol}</m:symbol>
</m:request>
@@ -3142,7 +3149,7 @@ it will first try to read the content ty
<script language="js"><![CDATA[
var symbol = mc.getPayloadXML()..*::Code.toString();
mc.setPayloadXML(
- <m:getQuote xmlns:m="http://services.samples/xsd">
+ <m:getQuote xmlns:m="http://services.samples">
<m:request>
<m:symbol>{symbol}</m:symbol>
</m:request>