Author: asankha
Date: Wed Nov  7 22:14:37 2007
New Revision: 593030

URL: http://svn.apache.org/viewvc?rev=593030&view=rev
Log:
db samples - changed spelling prize to price

Modified:
    
webservices/synapse/branches/1.1/repository/conf/sample/synapse_sample_361.xml
    
webservices/synapse/branches/1.1/repository/conf/sample/synapse_sample_362.xml
    webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples.html
    
webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples_Setup.html

Modified: 
webservices/synapse/branches/1.1/repository/conf/sample/synapse_sample_361.xml
URL: 
http://svn.apache.org/viewvc/webservices/synapse/branches/1.1/repository/conf/sample/synapse_sample_361.xml?rev=593030&r1=593029&r2=593030&view=diff
==============================================================================
--- 
webservices/synapse/branches/1.1/repository/conf/sample/synapse_sample_361.xml 
(original)
+++ 
webservices/synapse/branches/1.1/repository/conf/sample/synapse_sample_361.xml 
Wed Nov  7 22:14:37 2007
@@ -44,7 +44,7 @@
                     </pool>
                 </connection>
                 <statement>
-                    <sql>update company set prize=? where name =?</sql>
+                    <sql>update company set price=? where name =?</sql>
                     <parameter expression="//m0:return/m0:last/child::text()"
                                xmlns:m0="http://services.samples/xsd"; 
type="DOUBLE"/>
                     <parameter expression="//m0:return/m0:symbol/child::text()"

Modified: 
webservices/synapse/branches/1.1/repository/conf/sample/synapse_sample_362.xml
URL: 
http://svn.apache.org/viewvc/webservices/synapse/branches/1.1/repository/conf/sample/synapse_sample_362.xml?rev=593030&r1=593029&r2=593030&view=diff
==============================================================================
--- 
webservices/synapse/branches/1.1/repository/conf/sample/synapse_sample_362.xml 
(original)
+++ 
webservices/synapse/branches/1.1/repository/conf/sample/synapse_sample_362.xml 
Wed Nov  7 22:14:37 2007
@@ -45,7 +45,7 @@
                     </pool>
                 </connection>
                 <statement>
-                    <sql>update company set prize=? where name =?</sql>
+                    <sql>update company set price=? where name =?</sql>
                     <parameter expression="//m0:return/m0:last/child::text()"
                                xmlns:m0="http://services.samples/xsd"; 
type="DOUBLE"/>
                     <parameter expression="//m0:return/m0:symbol/child::text()"
@@ -69,12 +69,12 @@
                     <sql>select * from company where name =?</sql>
                     <parameter expression="//m0:return/m0:symbol/child::text()"
                                xmlns:m0="http://services.samples/xsd"; 
type="VARCHAR"/>
-                    <result name="stock_prize" column="prize"/>
+                    <result name="stock_price" column="price"/>
                 </statement>
             </dblookup>
             <log level="custom">
                 <property name="text"
-                          expression="fn:concat('Stock Prize - 
',get-property('stock_prize'))"/>
+                          expression="fn:concat('Stock price - 
',get-property('stock_price'))"/>
             </log>
             <send/>
         </out>

Modified: 
webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples.html
URL: 
http://svn.apache.org/viewvc/webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples.html?rev=593030&r1=593029&r2=593030&view=diff
==============================================================================
--- webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples.html 
(original)
+++ webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples.html 
Wed Nov  7 22:14:37 2007
@@ -3182,8 +3182,8 @@
 <p>Following database mediators use Derby in a client/server configuration by
 using the network server. Therefore, to proceed with the following samples,
 you need a working Derby database server and you have to follow the steps in
-<a href="Synapse_Samples_Setup.html#derby">Sample Setup Guide</a> before going
-through the samples.</p>
+<a href="Synapse_Samples_Setup.html#derby">Sample Setup Guide</a> before
+going through the samples.</p>
 
 <p></p>
 
@@ -3371,7 +3371,7 @@
                     &lt;/pool&gt;
                 &lt;/connection&gt;
                 &lt;statement&gt;
-                    &lt;sql&gt;update company set prize=? where name 
=?&lt;/sql&gt;
+                    &lt;sql&gt;update company set price=? where name 
=?&lt;/sql&gt;
                     &lt;parameter 
expression="//m0:return/m0:last/child::text()"
                                xmlns:m0="http://services.samples/xsd"; 
type="DOUBLE"/&gt;
                     &lt;parameter 
expression="//m0:return/m0:symbol/child::text()"
@@ -3412,7 +3412,7 @@
 
 <p>and then execute the following query using database client tool against
 synapsedb.</p>
-<pre>select prize from company where name='IBM';</pre>
+<pre>select price from company where name='IBM';</pre>
 
 <p>It will show some value as follows.</p>
 <pre>96.39535981018865</pre>
@@ -3449,7 +3449,7 @@
                     &lt;/pool&gt;
                 &lt;/connection&gt;
                 &lt;statement&gt;
-                    &lt;sql&gt;update company set prize=? where name 
=?&lt;/sql&gt;
+                    &lt;sql&gt;update company set price=? where name 
=?&lt;/sql&gt;
                     &lt;parameter 
expression="//m0:return/m0:last/child::text()"
                                xmlns:m0="http://services.samples/xsd"; 
type="DOUBLE"/&gt;
                     &lt;parameter 
expression="//m0:return/m0:symbol/child::text()"
@@ -3473,12 +3473,12 @@
                     &lt;sql&gt;select * from company where name =?&lt;/sql&gt;
                     &lt;parameter 
expression="//m0:return/m0:symbol/child::text()"
                                xmlns:m0="http://services.samples/xsd"; 
type="VARCHAR"/&gt;
-                    &lt;result name="stock_prize" column="prize"/&gt;
+                    &lt;result name="stock_price" column="price"/&gt;
                 &lt;/statement&gt;
             &lt;/dblookup&gt;
             &lt;log level="custom"&gt;
                 &lt;property name="text"
-                          expression="fn:concat('Stock Prize - 
',get-property('stock_prize'))"/&gt;
+                          expression="fn:concat('Stock price - 
',get-property('stock_price'))"/&gt;
             &lt;/log&gt;
             &lt;send/&gt;
         &lt;/out&gt;
@@ -3507,7 +3507,7 @@
 <pre>ant stockquote 
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService 
-Dtrpurl=http://localhost:8080/ -Dsymbol=IBM</pre>
 
 <p>Synapse console shows,</p>
-<pre>INFO LogMediator text = ** Reporting to the Database 
**<br><br>...<br><br>INFO LogMediator text = ** Looking up from the Database 
**<br><br>...<br><br>INFO LogMediator text = Stock Prize - 
153.47886496064808</pre>
+<pre>INFO LogMediator text = ** Reporting to the Database 
**<br><br>...<br><br>INFO LogMediator text = ** Looking up from the Database 
**<br><br>...<br><br>INFO LogMediator text = Stock price - 
153.47886496064808</pre>
 
 <p></p>
 
@@ -3584,7 +3584,11 @@
 request that may have passed through the synapse on a single unit of time. To
 test concurrency throttling ,it is required to send concurrent request to
 synapse. For synapse with above configuration ,if client send 20 request
-concurrently ,then approximately half of those will success..</p>
+concurrently ,then approximately half of those will success. The client
+command is as follows.</p>
+<pre>ant stockquote -Dsymbol=IBM -Dmode=quote 
-Daddurl=http://localhost:8080/</pre>
+
+<p></p>
 
 <h2><a name="Sample371">Sample 371: Restricting requests based on policies
 </a></h2>
@@ -3699,7 +3703,7 @@
 prohibit further requests after the received request count exceeds the
 specified time. Now run the client 5 times repetitively using the following
 command to see how throttling works.</p>
-<pre>ant stockquote -Dsymbol=IBM -Dmode=quote 
-Daddurl=http://localhost:8080</pre>
+<pre>ant stockquote -Dsymbol=IBM -Dmode=quote 
-Daddurl=http://localhost:8080/</pre>
 
 <p>For the first four requests you will get the quote prices for IBM as
 follows.</p>

Modified: 
webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples_Setup.html
URL: 
http://svn.apache.org/viewvc/webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples_Setup.html?rev=593030&r1=593029&r2=593030&view=diff
==============================================================================
--- 
webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples_Setup.html 
(original)
+++ 
webservices/synapse/branches/1.1/src/site/resources/Synapse_Samples_Setup.html 
Wed Nov  7 22:14:37 2007
@@ -495,7 +495,7 @@
     
'jdbc:derby://localhost:1527/synapsedb;user=synapse;password=synapse;create=true';</p>
   </li>
   <li>Create a table using the following statement 
-    <p>create table company(name varchar(10), id varchar(10), prize
+    <p>create table company(name varchar(10), id varchar(10), price
     double);</p>
   </li>
   <li>Inserts some data using following statements 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to