Author: ruwan
Date: Thu May 22 09:20:37 2008
New Revision: 17277
Log:
Part 2 of the issue ESBJAVA-490 (changing the functional http port from 8080 to
8282)
Modified:
branches/esb/java/1.7/esb/java/modules/core/src/main/java/org/wso2/esb/ServiceBusConfiguration.java
branches/esb/java/1.7/esb/java/modules/core/src/main/java/org/wso2/esb/transport/util/PolicyProcessor.java
branches/esb/java/1.7/esb/java/modules/core/src/main/java/org/wso2/esb/transport/util/XsdProcessor.java
branches/esb/java/1.7/esb/java/modules/distribution/src/main/conf/axis2.xml
branches/esb/java/1.7/esb/java/modules/distribution/src/main/conf/server.xml
branches/esb/java/1.7/esb/java/modules/samples/src/main/scripts/build.xml
branches/esb/java/1.7/esb/java/repository/conf/sample/resources/misc/client/axis2.xml
branches/esb/java/1.7/esb/java/src/site/xdoc/ESB_QuickStart.xml
branches/esb/java/1.7/esb/java/src/site/xdoc/ESB_Samples.xml
branches/esb/java/1.7/esb/java/src/site/xdoc/ESB_Samples_Setup.xml
Modified:
branches/esb/java/1.7/esb/java/modules/core/src/main/java/org/wso2/esb/ServiceBusConfiguration.java
==============================================================================
---
branches/esb/java/1.7/esb/java/modules/core/src/main/java/org/wso2/esb/ServiceBusConfiguration.java
(original)
+++
branches/esb/java/1.7/esb/java/modules/core/src/main/java/org/wso2/esb/ServiceBusConfiguration.java
Thu May 22 09:20:37 2008
@@ -175,7 +175,7 @@
}
public int getHttpPort() {
- return getFirstPropertyAsInt("HTTPPort", 8080);
+ return getFirstPropertyAsInt("HTTPPort", 8282);
}
public int getHttpsPort() {
Modified:
branches/esb/java/1.7/esb/java/modules/core/src/main/java/org/wso2/esb/transport/util/PolicyProcessor.java
==============================================================================
---
branches/esb/java/1.7/esb/java/modules/core/src/main/java/org/wso2/esb/transport/util/PolicyProcessor.java
(original)
+++
branches/esb/java/1.7/esb/java/modules/core/src/main/java/org/wso2/esb/transport/util/PolicyProcessor.java
Thu May 22 09:20:37 2008
@@ -135,7 +135,7 @@
outputStream.write("<h4>Policy not
found!</h4>".getBytes());
} else {
String ipAddress = "http://" +
NetworkUtils.getLocalHostname() + ":" +
- 8080;
+ 8282;
ServerConfiguration serverCofig =
ServerConfiguration.getInstance();
outputStream.write(("<html><head>" +
"<title>WSO2 Web Services
Application Server v" +
Modified:
branches/esb/java/1.7/esb/java/modules/core/src/main/java/org/wso2/esb/transport/util/XsdProcessor.java
==============================================================================
---
branches/esb/java/1.7/esb/java/modules/core/src/main/java/org/wso2/esb/transport/util/XsdProcessor.java
(original)
+++
branches/esb/java/1.7/esb/java/modules/core/src/main/java/org/wso2/esb/transport/util/XsdProcessor.java
Thu May 22 09:20:37 2008
@@ -113,7 +113,7 @@
}
} else {
String ipAddress = "http://" +
NetworkUtils.getLocalHostname() + ":" +
- 8080;
+ 8282;
String version =
ServerConfiguration.getInstance().getFirstProperty("Version");
outputStream.write(("<html><head>" +
Modified:
branches/esb/java/1.7/esb/java/modules/distribution/src/main/conf/axis2.xml
==============================================================================
--- branches/esb/java/1.7/esb/java/modules/distribution/src/main/conf/axis2.xml
(original)
+++ branches/esb/java/1.7/esb/java/modules/distribution/src/main/conf/axis2.xml
Thu May 22 09:20:37 2008
@@ -138,7 +138,7 @@
<!-- ================================================= -->
<!-- the non blocking http transport based on HttpCore + NIO extensions -->
<transportReceiver name="http"
class="org.apache.synapse.transport.nhttp.HttpCoreNIOListener">
- <parameter name="port" locked="false">8080</parameter>
+ <parameter name="port" locked="false">8282</parameter>
<parameter name="non-blocking" locked="false">true</parameter>
</transportReceiver>
Modified:
branches/esb/java/1.7/esb/java/modules/distribution/src/main/conf/server.xml
==============================================================================
---
branches/esb/java/1.7/esb/java/modules/distribution/src/main/conf/server.xml
(original)
+++
branches/esb/java/1.7/esb/java/modules/distribution/src/main/conf/server.xml
Thu May 22 09:20:37 2008
@@ -48,7 +48,7 @@
<WorkDirectory>work</WorkDirectory> <!-- The temporary directory,
created under ESB_HOME -->
<ContextPath>/esb</ContextPath> <!-- The web context for the
ESB -->
<RMIRegistryPort>1099</RMIRegistryPort> <!-- RMI Registry port used
for JMX -->
- <HTTPPort>8080</HTTPPort> <!-- HTTP port used by the
underlying Axis2/Synapse -->
+ <HTTPPort>8282</HTTPPort> <!-- HTTP port used by the
underlying Axis2/Synapse -->
<HTTPSPort>8443</HTTPSPort> <!-- HTTPS port used by the
underlying Axis2/Synapse -->
<DerbyPort>1528</DerbyPort> <!-- Derby database port -->
<StatisticsInterval>60</StatisticsInterval> <!-- Interval (in seconds) for
processing statistics -->
Modified:
branches/esb/java/1.7/esb/java/modules/samples/src/main/scripts/build.xml
==============================================================================
--- branches/esb/java/1.7/esb/java/modules/samples/src/main/scripts/build.xml
(original)
+++ branches/esb/java/1.7/esb/java/modules/samples/src/main/scripts/build.xml
Thu May 22 09:20:37 2008
@@ -32,8 +32,8 @@
ant stockquote [-Dsymbol=IBM|MSFT|SUN|..]
[-Dmode=quote | customquote | fullquote | placeorder |
marketactivity]
[-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService]
- [-Dtrpurl=http://localhost:8080]
- [-Dprxurl=http://localhost:8080]
+ [-Dtrpurl=http://localhost:8282]
+ [-Dprxurl=http://localhost:8282]
[-Drest=true]
[-Dwsrm=true]
[-Dpolicy=../../repository/conf/sample/resources/policy/policy_1.xml]
@@ -59,7 +59,7 @@
examples:
ant optimizeclient [-Dopt_mode=mtom | swa]
- [-Dopt_url=http://localhost:8080/soap/MTOMSwASampleService]
+ [-Dopt_url=http://localhost:8282/soap/MTOMSwASampleService]
[-Dopt_file=./../../repository/conf/sample/resources/mtom/asf-logo.gif]
</echo>
</target>
@@ -117,11 +117,11 @@
<!-- a simple smoke test -->
<target name="smoke" depends="compile">
<property name="addurl"
value="http://localhost:9000/soap/SimpleStockQuoteService"/>
- <property name="trpurl" value="http://localhost:8080/"/>
+ <property name="trpurl" value="http://localhost:8282/"/>
<java classname="samples.userguide.StockQuoteClient"
classpathref="javac.classpath" fork="true">
<sysproperty key="addurl"
value="http://localhost:9000/soap/SimpleStockQuoteService"/>
- <sysproperty key="trpurl" value="http://localhost:8080/"/>
+ <sysproperty key="trpurl" value="http://localhost:8282/"/>
<sysproperty key="java.io.tmpdir"
value="./../../work/temp/sampleClient"/>
</java>
</target>
Modified:
branches/esb/java/1.7/esb/java/repository/conf/sample/resources/misc/client/axis2.xml
==============================================================================
---
branches/esb/java/1.7/esb/java/repository/conf/sample/resources/misc/client/axis2.xml
(original)
+++
branches/esb/java/1.7/esb/java/repository/conf/sample/resources/misc/client/axis2.xml
Thu May 22 09:20:37 2008
@@ -141,7 +141,7 @@
<!-- ================================================= -->
<transportReceiver name="http"
class="org.apache.axis2.transport.http.SimpleHTTPServer">
- <parameter name="port">8080</parameter>
+ <parameter name="port">8282</parameter>
<!-- Here is the complete list of supported parameters (see example
settings further below):
port: the port to listen on (default 6060)
hostname: if non-null, url prefix used in reply-to endpoint
references (default null)
Modified: branches/esb/java/1.7/esb/java/src/site/xdoc/ESB_QuickStart.xml
==============================================================================
--- branches/esb/java/1.7/esb/java/src/site/xdoc/ESB_QuickStart.xml
(original)
+++ branches/esb/java/1.7/esb/java/src/site/xdoc/ESB_QuickStart.xml Thu May
22 09:20:37 2008
@@ -189,8 +189,8 @@
2007-11-08 17:57:54,530 [127.0.1.1-upul] [main] INFO HttpCoreNIOSender HTTP
Sender starting
2007-11-08 17:57:54,871 [127.0.1.1-upul] [main] INFO HttpCoreNIOListener
HTTPS Listener starting on port : 8443
2007-11-08 17:57:54,871 [127.0.1.1-upul] [main] INFO ServerManager Starting
transport https on port 8443
-2007-11-08 17:57:54,875 [127.0.1.1-upul] [main] INFO HttpCoreNIOListener HTTP
Listener starting on port : 8080
-2007-11-08 17:57:54,875 [127.0.1.1-upul] [main] INFO ServerManager Starting
transport http on port 8080
+2007-11-08 17:57:54,875 [127.0.1.1-upul] [main] INFO HttpCoreNIOListener HTTP
Listener starting on port : 8282
+2007-11-08 17:57:54,875 [127.0.1.1-upul] [main] INFO ServerManager Starting
transport http on port 8282
2007-11-08 17:57:54,894 [127.0.1.1-upul] [main] INFO ServerManager Starting
transport vfs
2007-11-08 17:57:54,894 [127.0.1.1-upul] [main] INFO ServerManager Starting
transport admin/https
2007-11-08 17:57:54,894 [127.0.1.1-upul] [main] INFO ServerManager Ready for
processing
@@ -356,11 +356,11 @@
The final step is running the client. Go to
<esb-home>/samples/axis2Client
directory and type the following command.
</p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080 -Dsymbol=IBM -Dmode=quote</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282 -Dsymbol=IBM -Dmode=quote</pre>
<p>
You can see the following output with the quote price sent by the server.
</p>
-<pre xml:space="preserve">[EMAIL PROTECTED]:~/wso2esb-1.6/samples/axis2Client$
ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080 -Dsymbol=IBM -Dmode=quote
+<pre xml:space="preserve">[EMAIL PROTECTED]:~/wso2esb-1.6/samples/axis2Client$
ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282 -Dsymbol=IBM -Dmode=quote
Buildfile: build.xml
init:
@@ -376,11 +376,11 @@
Total time: 4 seconds</pre>
<p>
This sends a request for a stock quote for the symbol IBM, sets the
- transport URL to the ESB (http://localhost:8080), and the WS-Addressing
+ transport URL to the ESB (http://localhost:8282), and the WS-Addressing
EPR set to the actual server
(http://localhost:9000/soap/SimpleStockQuoteService). The actual wire
level HTTP message sent by the client is as follows, and is sent over
port
- 8080 to the ESB instance on the localhost.
+ 8282 to the ESB instance on the localhost.
</p>
<pre xml:space="preserve">POST / HTTP/1.1
Content-Type: text/xml; charset=UTF-8
@@ -616,12 +616,12 @@
following command:
</p>
<div class="command">
- ant stockquote -Dtrpurl=http://localhost:8080/soap/StockQuoteProxy
+ ant stockquote -Dtrpurl=http://localhost:8282/soap/StockQuoteProxy
-Dmode=quote -Dsymbol=IBM
</div>
<p>
The above command sends a stockquote request directly to the provided
- transport endpoint at: http://localhost:8080/soap/StockQuoteProxy. You
+ transport endpoint at: http://localhost:8282/soap/StockQuoteProxy. You
will see the response from the server displayed on the console as
follows:
</p>
<div class="consoleOutput">
Modified: branches/esb/java/1.7/esb/java/src/site/xdoc/ESB_Samples.xml
==============================================================================
--- branches/esb/java/1.7/esb/java/src/site/xdoc/ESB_Samples.xml
(original)
+++ branches/esb/java/1.7/esb/java/src/site/xdoc/ESB_Samples.xml Thu May
22 09:20:37 2008
@@ -230,10 +230,10 @@
example. </p>
<ol>
<li>Smart Client mode </li>
- <li><pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ </pre>
+ <li><pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ </pre>
</li>
<li>Using ESB as a HTTP Proxy </li>
- <li><pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dprxurl=http://localhost:8080/</pre>
+ <li><pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dprxurl=http://localhost:8282/</pre>
</li>
<li>Gateway Mode / Dumb Client </li>
<li><p>See sample # 1 </p>
@@ -301,11 +301,11 @@
</p>
<p>Execute the Dumb Client as: </p>
-<pre xml:space="preserve">ant stockquote
-Dtrpurl=http://localhost:8080/soap/StockQuote<br /></pre>
+<pre xml:space="preserve">ant stockquote
-Dtrpurl=http://localhost:8282/soap/StockQuote<br /></pre>
<p>This time you will see ESB receiving a message for which ESB was set as
the ultimate receiver of the message. Based on the 'To' EPR of
-http://localhost:8080/soap/StockQuote, ESB performs a match to the path
+http://localhost:8282/soap/StockQuote, ESB performs a match to the path
'/StockQuote' and as the request matches the XPath expression of the filter
mediator, the filter mediator's child mediators execute. This sends the
message to a different endpoint as specified by the endpoint definition. The
@@ -362,11 +362,11 @@
XPath extension function. </p>
<p>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
--Dtrpurl=http://localhost:8080/ -Dsymbol=IBM </p>
+-Dtrpurl=http://localhost:8282/ -Dsymbol=IBM </p>
<pre xml:space="preserve">INFO LogMediator - symbol = Great stock - IBM, epr =
http://localhost:9000/axis2/services/SimpleStockQuoteService </pre>
<p>ant stockquote -Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
--Dtrpurl=http://localhost:8080/ -Dsymbol=MSFT </p>
+-Dtrpurl=http://localhost:8282/ -Dsymbol=MSFT </p>
<pre xml:space="preserve">INFO LogMediator - symbol = Are you sure? - MSFT,
epr = http://localhost:9000/axis2/services/SimpleStockQuoteService</pre>
<h2><a id="Sample3">Sample 3: Local Registry entry definitions, reusable
@@ -420,7 +420,7 @@
mediation logs you will now notice that the sequence named "main" is
executed. Then for the incoming message flow the <in> mediator
executes, and it calls into the sequence named "stockquote". </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/</pre>
<pre xml:space="preserve">DEBUG SequenceMediator - Sequence mediator
<main> :: mediate()<br />DEBUG InMediator - In mediator mediate()<br
/>DEBUG SequenceMediator - Sequence mediator <stockquote> ::
mediate()</pre>
<p>As the "stockquote" sequence executes, the log mediator dumps a simple
@@ -511,7 +511,7 @@
ESB cannot find an error handler, it looks for a sequence named 'fault'. Thus
the 'fault' sequence can be seen executing, and writing the generic error
message to the logs. </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dsymbol=MSFT</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dsymbol=MSFT</pre>
<pre xml:space="preserve">[HttpServerWorker-1] DEBUG SendMediator - Send
mediator :: mediate()
[HttpServerWorker-1] ERROR IndirectEndpoint - Reference to non-existent
endpoint for key : bogus
[HttpServerWorker-1] DEBUG MediatorFaultHandler - MediatorFaultHandler ::
handleFault
@@ -523,7 +523,7 @@
invoked, and it specifies 'sunErrorHandler' as its error handler. Hence when
the send fails, you could see the proper error handler invocation and the
custom error message printed as follows. </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dsymbol=SUN</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dsymbol=SUN</pre>
<pre xml:space="preserve">[HttpServerWorker-1] DEBUG SequenceMediator -
Sequence mediator <sunSequence> :: mediate()
[HttpServerWorker-1] DEBUG SequenceMediator - Setting the onError handler for
the sequence
[HttpServerWorker-1] DEBUG AbstractListMediator - Implicit Sequence
<SequenceMediator> :: mediate()
@@ -587,14 +587,14 @@
generated. A connection refused exception would be generated for the SUN
stock request. This error message is captured and returned to the original
client as a SOAP fault in this example. </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dsymbol=MSFT</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dsymbol=MSFT</pre>
<p>returns, </p>
<pre xml:space="preserve"><soapenv:Fault
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Client</faultcode>
<faultstring>java.net.UnknownHostException:
bogus</faultstring><detail /></soapenv:Fault></pre>
<p>And </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dsymbol=SUN</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dsymbol=SUN</pre>
<p>returns, </p>
<pre xml:space="preserve"><soapenv:Fault
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Client</faultcode>
@@ -621,7 +621,7 @@
the incoming messages, and manipulates the 'To' header to refer to the stock
quote service on the sample Axis2 server. Thus it is now possible to request
for a stock quote as follows. </p>
-<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8080/</pre>
+<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8282/</pre>
<h2><a id="Sample7">Sample 7: Introduction to local Registry entries and
using Schema validation</a> </h2>
@@ -693,7 +693,7 @@
slightly different message than what is created by the stock quote client.
(i.e. expects a 'stocksymbol' element instead of 'symbol' to specify thestock
symbol) </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/</pre>
<h2><a id="Sample8">Sample 8: Introduction to static and dynamic registry
resources, and using XSLT transformations</a> </h2>
@@ -758,7 +758,7 @@
<p>Execute the custom quote client as 'ant stockquote -Dmode=customquote ...'
and analyze the the ESB debug log output </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dmode=customquote</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dmode=customquote</pre>
<p>The incoming message is now transformed into a standard stock quote
request as expected by the SimpleStockQuoteService deployed on the local
@@ -834,7 +834,7 @@
<p>Once ESB is started, execute the stock quote client as 'ant stockquote..'.
You will notice that that ESB fetches the definition of the sequence from the
registry and executes its rules as follows: </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/</pre>
<pre xml:space="preserve">[HttpServerWorker-1] INFO SimpleURLRegistry -
==> Repository fetch of resource with key : sequence/dynamic_seq_1.xml
...
[HttpServerWorker-1] DEBUG SequenceMediator - Sequence mediator
<dynamic_sequence> :: mediate()
@@ -896,7 +896,7 @@
SimpleStockQuoteService on the default Axis2 instance on http port 9000.
Repeat the above example immediately again, and notice that the endpoint is
cached and reused by ESB - similarly to example # 8. </p>
-<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8080/</pre>
+<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8282/</pre>
<p>Now edit the repository/conf/sample/resources/endpoint/dynamic_endpt_1.xml
definition and update the address to
@@ -929,7 +929,7 @@
<p>(Note: Full registry based configuration is not dynamic atleast for the
moment. i.e. it is not reloading itself) </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/</pre>
<pre xml:space="preserve">[HttpServerWorker-1] INFO LogMediator - message =
This is a dynamic Synapse configuration</pre>
<p>The actual synapse.xml loaded is: </p>
@@ -958,7 +958,7 @@
-Dmode=placeorder...' and you will notice the one way message flowing through
ESB into the sample Axis2 server instance, which reports the acceptance of
the order as follows: </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dmode=placeorder</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dmode=placeorder</pre>
<pre xml:space="preserve">SimpleStockQuoteService :: Accepted order for : 7482
stocks of IBM at $ 169.27205579038733</pre>
<p>If you send your client request through TCPmon, you will notice that the
@@ -991,7 +991,7 @@
<p>Execute the 'ant stockquote' specifying that the request should be a REST
request as follows: </p>
-<pre xml:space="preserve">ant stockquote
-Dtrpurl=http://localhost:8080/soap/StockQuote -Drest=true</pre>
+<pre xml:space="preserve">ant stockquote
-Dtrpurl=http://localhost:8282/soap/StockQuote -Drest=true</pre>
<p>This example shows a http REST request (as shown below) being transformed
into a SOAP request and forwarded to the stock quote service. </p>
@@ -1622,7 +1622,7 @@
<p>Specified service and port refers to the endpoint address
"http://localhost:9000/soap/SimpleStockQuoteService" according to the above
WSDL. Now run the client using the following command. </p>
-<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote
-Daddurl=http://localhost:8080</pre>
+<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote
-Daddurl=http://localhost:8282</pre>
<p>Client will print the quote price for IBM received from the server running
on port 9000. Observe the Axis2 console and the ESB console to verify this
@@ -1678,7 +1678,7 @@
received by ESB. The wsse:Security header is then removed from the decrypted
message and the response is delivered back to the client, as expected. You
may execute the client as follows: </p>
-<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8080/</pre>
+<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8282/</pre>
<p>The message sent by ESB to the secure service can be seen as follows, when
TCPMon is used. </p>
@@ -1779,7 +1779,7 @@
SOAP headers are removed form the message in the out mediator as WS-RM
message exchange happens only between the ESB and the server. Now run the
sample client using the following command. </p>
-<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote
-Daddurl=http://localhost:8080</pre>
+<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote
-Daddurl=http://localhost:8282</pre>
<p>You can observer the client output displaying the quote price for IBM as
follows: </p>
@@ -1941,14 +1941,14 @@
<p></p>
<p>Once ESB starts, you could go to
-http://localhost:8080/soap/StockQuoteProxy?wsdl and view the WSDL generated
+http://localhost:8282/soap/StockQuoteProxy?wsdl and view the WSDL generated
for the proxy service defined in the configuration. This WSDL is based on the
source WSDL supplied in the proxy service definition, and is updated to
reflect the proxy service EPR. </p>
<p>Execute the stock quote client by requesting for a stock quote on the
proxy service as follows: </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8080/soap/StockQuoteProxy</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8282/soap/StockQuoteProxy</pre>
<p>An 'inSequence' or 'endpoint' or both of these would decide how the
message would be handled after the proxy service receives the message. In the
@@ -2006,7 +2006,7 @@
<p>You could send a stock quote request to each of these proxy services and
receive the reply generated by the actual service hosted on the Axis2
instance. </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8080/soap/StockQuoteProxy1<br />ant stockquote
-Daddurl=http://localhost:8080/soap/StockQuoteProxy2</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8282/soap/StockQuoteProxy1<br />ant stockquote
-Daddurl=http://localhost:8282/soap/StockQuoteProxy2</pre>
<h2><a id="Sample152">Sample 152: Switching transports and message format
from SOAP to REST/POX</a> </h2>
@@ -2039,7 +2039,7 @@
subset of available transports, and how it could switch from one transport to
another. This example exposes the created proxy service only on https, and
thus if the user tries to access it over http, would result in a fault. </p>
-<pre xml:space="preserve">ant stockquote
-Dtrpurl=http://localhost:8080/soap/StockQuoteProxy
+<pre xml:space="preserve">ant stockquote
-Dtrpurl=http://localhost:8282/soap/StockQuoteProxy
...
[java] org.apache.axis2.AxisFault: The service cannot be found for the
endpoint reference (EPR) /soap/StockQuoteProxy</pre>
@@ -2139,12 +2139,12 @@
to service, both of which are secure). To execute the client, send a stock
quote request to the proxy service, and sign and encrypt the request by
specifying the client side security policy as follows: </p>
-<pre xml:space="preserve">ant stockquote
-Dtrpurl=http://localhost:8080/soap/StockQuoteProxy
-Dpolicy=./../../repository/conf/sample/resources/policy/client_policy_3.xml</pre>
+<pre xml:space="preserve">ant stockquote
-Dtrpurl=http://localhost:8282/soap/StockQuoteProxy
-Dpolicy=./../../repository/conf/sample/resources/policy/client_policy_3.xml</pre>
<p>By following through the debug logs or TCPMon output, you could see that
the request received by the proxy service was signed and encrypted. Also,
looking up the WSDL of the proxy service by requesting the URL
-http://localhost:8080/soap/StockQuoteProxy?wsdl reveals the security policy
+http://localhost:8282/soap/StockQuoteProxy?wsdl reveals the security policy
attachments are not there and security is not engaged. When sending the
message to the backend service, you could verify that the security headers
were there as in the original message to ESB from client, and that the
@@ -2222,7 +2222,7 @@
done </p>
<p>Runs the client with </p>
-<pre xml:space="preserve"> ant loadbalancefailover -Dmode=session
-Dtrpurl=http://localhost:8080/soap/LBProxy</pre>
+<pre xml:space="preserve"> ant loadbalancefailover -Dmode=session
-Dtrpurl=http://localhost:8282/soap/LBProxy</pre>
<p>Functionality is similar to the sample #54. </p>
@@ -2281,12 +2281,12 @@
the client, send a stock quote request to the proxy service, and sign and
encrypt the request by specifying the client side security policy as follows:
</p>
-<pre xml:space="preserve">ant stockquote
-Dtrpurl=http://localhost:8080/soap/StockQuoteProxy
-Dpolicy=./../../repository/conf/sample/resources/policy/client_policy_3.xml</pre>
+<pre xml:space="preserve">ant stockquote
-Dtrpurl=http://localhost:8282/soap/StockQuoteProxy
-Dpolicy=./../../repository/conf/sample/resources/policy/client_policy_3.xml</pre>
<p>By following through the debug logs or TCPMon output, you could see that
the request received by the proxy service was signed and encrypted. Also,
looking up the WSDL of the proxy service by requesting the
-URLhttp://localhost:8080/soap/StockQuoteProxy?wsdl reveals the security
+URLhttp://localhost:8282/soap/StockQuoteProxy?wsdl reveals the security
policy attachment to the supplied base WSDL. When sending the message to the
backend service, you could verify that the security headers were removed, and
that the response received does not use WS-Security, but that the response
@@ -2337,7 +2337,7 @@
In Sequence before the message is sent to the back end server. This is
required as the reliable messaging is applicable only between the client and
ESB. Now start the client with WS-RM as follows: </p>
-<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote
-Daddurl=http://localhost:8080/soap/StockQuoteProxy -Dwsrm=true</pre>
+<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote
-Daddurl=http://localhost:8282/soap/StockQuoteProxy -Dwsrm=true</pre>
<p>In this case, client sends WS-RM enabled request to ESB where ESB sends
normal request to the server. This can be observed by examining the wire
@@ -2396,7 +2396,7 @@
<pre xml:space="preserve"><transportReceiver name="jms"
class="org.apache.axis2.transport.jms.JMSListener"> ...</pre>
<p>Once you start the Synapse configuration and request for the WSDL of the
-proxy service (http://localhost:8080/soap/StockQuoteProxy?wsdl) you will
+proxy service (http://localhost:8282/soap/StockQuoteProxy?wsdl) you will
notice that its exposed only on the JMS transport. This is because the
configuration specified this requirement in the proxy service definition. </p>
@@ -2472,14 +2472,14 @@
<p>You may also notice that the simple stock quote proxy service exposed in
ESB is now available only in HTTP as we have specified transport for that
service as HTTP. To observe this, access the WSDL of stock quote proxy
-service at http://localhost:8080/soap/StockQuoteProxy?wsdl. </p>
+service at http://localhost:8282/soap/StockQuoteProxy?wsdl. </p>
<p>This ESB configuration creates a proxy service over HTTP and forwards
received messages to the above EPR using JMS, and sends back the response to
the client over HTTP once the simple stock quote service responds with the
stock quote reply over JMS to the ESB server. To test this, send a place
order request to ESB using HTTP as follows: </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8080/soap/StockQuoteProxy -Dmode=placeorder
-Dsymbol=MSFT</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8282/soap/StockQuoteProxy -Dmode=placeorder
-Dsymbol=MSFT</pre>
<p>The sample Axis2 server console will print a message indicating that it
has accepted the order as follows: </p>
@@ -2740,7 +2740,7 @@
message received and acknowledges it. On the ESB console you could see the
logged message, and if TCPMon was used at the client, you would see the 202
Accepted response sent back to the client from ESB </p>
-<pre xml:space="preserve">ant stockquote -Dmode=placeorder
-Dtrpurl=http://localhost:8080/soap/OneWayProxy</pre>
+<pre xml:space="preserve">ant stockquote -Dmode=placeorder
-Dtrpurl=http://localhost:8282/soap/OneWayProxy</pre>
<pre xml:space="preserve">HTTP/1.1 202 Accepted
Content-Type: text/xml; charset=UTF-8
Host: 127.0.0.1
@@ -3071,7 +3071,7 @@
'transformRequest' and 'transformResponse', and the Synapse configuration
uses the function attribute to specify which function should be invoked. Use
the stock quote client to issue a custom quote client as follows.: </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dmode=customquote</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dmode=customquote</pre>
<p>ESB uses the script mediator and the specified Javascript function to
convert the custom request to a standard quote request. Subsequently the
@@ -3164,7 +3164,7 @@
property to mark it as a response. Execute the stock quote client, and you
will receive the response "99.9" as the last sale price as per the above
script. </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/
...
stockquote:
[java] Standard :: Stock price = $99.9</pre>
@@ -3287,7 +3287,7 @@
<p>This sample is functionally equivalent to the sample #353. </p>
<p>Runs the client with </p>
-<pre xml:space="preserve"> ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dmode=customquote</pre>
+<pre xml:space="preserve"> ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dmode=customquote</pre>
<h2><a id="DBMediators">Database interactions in mediation (DBLookup /
DBReport)</a> </h2>
@@ -3428,7 +3428,7 @@
<p></p>
<p>When the IBM stock quote is requested, </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dsymbol=IBM</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dsymbol=IBM</pre>
<p>ESB console shows </p>
<pre xml:space="preserve">INFO LogMediator text = ** Looking up from the
Database **INFO LogMediator text = Company ID – c1<br /></pre>
@@ -3436,7 +3436,7 @@
<p></p>
<p>For the SUN stock quote, </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dsymbol=SUN</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dsymbol=SUN</pre>
<p></p>
@@ -3444,7 +3444,7 @@
<pre xml:space="preserve">INFO LogMediator text = ** Looking up from the
Database **INFO LogMediator text = Company ID – c2<br /></pre>
<p>and for the MSFT stock quote, </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dsymbol=MSFT</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dsymbol=MSFT</pre>
<pre xml:space="preserve">INFO LogMediator text = ** Looking up from the
Database **<br />INFO LogMediator text = Company ID – c2</pre>
<p>For any other symbols, ESB console shows </p>
@@ -3523,7 +3523,7 @@
<p></p>
<p>Run the client using, </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dsymbol=IBM</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dsymbol=IBM</pre>
<p>and then execute the following query using database client tool against
synapsedb. </p>
@@ -3620,7 +3620,7 @@
company database and logs it. </p>
<p>When running client, </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/ -Dsymbol=IBM</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/ -Dsymbol=IBM</pre>
<p>ESB console shows, </p>
<pre xml:space="preserve">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>
@@ -3792,7 +3792,7 @@
<p></p>
<p>Runs the client as follows</p>
-<pre>ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/</pre>
+<pre>ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/</pre>
<p></p>
@@ -3886,7 +3886,7 @@
ESB. For ESB with above configuration ,if client send 20 request concurrently
,then approximately half of those will success. The client command is as
follows. </p>
-<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote
-Daddurl=http://localhost:8080/</pre>
+<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote
-Daddurl=http://localhost:8282/</pre>
<p></p>
@@ -4003,7 +4003,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 xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote
-Daddurl=http://localhost:8080/</pre>
+<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote
-Daddurl=http://localhost:8282/</pre>
<p>For the first four requests you will get the quote prices for IBM as
follows. </p>
@@ -4095,7 +4095,7 @@
according to the policy. </p>
<p>Run the client as follows </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8080/soap/StockQuoteProxy</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8282/soap/StockQuoteProxy</pre>
<div>
<p>You will get results same as sample 371.if you run the load test, results
@@ -4267,7 +4267,7 @@
<p></p>
<p>Now run the client using the following command. </p>
-<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote
-Daddurl=http://localhost:8080</pre>
+<pre xml:space="preserve">ant stockquote -Dsymbol=IBM -Dmode=quote
-Daddurl=http://localhost:8282</pre>
<p>You will see the below output in the client console with the discounted
quote value. </p>
@@ -4337,7 +4337,7 @@
<p>Execute the custom quote client as 'ant stockquote -Dmode=customquote ...'
</p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8080/soap/StockQuoteProxy -Dmode=customquote </pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8282/soap/StockQuoteProxy -Dmode=customquote </pre>
<p></p>
@@ -4392,7 +4392,7 @@
commission.xml document will be added and given as a new price . </p>
<p>Invoke the client as follows. </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8080/soap/StockQuoteProxy</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8282/soap/StockQuoteProxy</pre>
<h2><a id="Splitter">Splitting messages in to parts and process in parallel
(Iterate / Clone)</a> </h2>
@@ -4448,7 +4448,7 @@
aggregated to form the resultant response and sent back to the client. </p>
<p>Invoke the client as follows. </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8080/soap/SplitAggregateProxy -Ditr=4</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:8282/soap/SplitAggregateProxy -Ditr=4</pre>
<h2><a id="Cache">Caching the responses over the requests (Cache
Mediator)</a> </h2>
@@ -4499,7 +4499,7 @@
the same type. </p>
<p>To observe this behaviour, invoke the client as follows. </p>
-<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8080/</pre>
+<pre xml:space="preserve">ant stockquote -Dtrpurl=http://localhost:8282/</pre>
<p>You could notice that if you send more than one requests within 20 seconds
only the first request is forwarded to the actual service, and the rest of
@@ -4557,7 +4557,7 @@
message is sent back to the client. </p>
<p>Invoke the client as follows. </p>
-<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080/</pre>
+<pre xml:space="preserve">ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8282/</pre>
</div>
</body>
</html>
Modified: branches/esb/java/1.7/esb/java/src/site/xdoc/ESB_Samples_Setup.xml
==============================================================================
--- branches/esb/java/1.7/esb/java/src/site/xdoc/ESB_Samples_Setup.xml
(original)
+++ branches/esb/java/1.7/esb/java/src/site/xdoc/ESB_Samples_Setup.xml Thu May
22 09:20:37 2008
@@ -140,7 +140,7 @@
<pre xml:space="preserve">ant stockquote [-Dsymbol=IBM|MSFT|SUN|..]
[-Dmode=quote | customquote | fullquote | placeorder | marketactivity]
[-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService]
- [-Dtrpurl=http://localhost:8080] [-Dprxurl=http://localhost:8080]
+ [-Dtrpurl=http://localhost:8282] [-Dprxurl=http://localhost:8282]
[-Dpolicy=../../repository/conf/sample/resources/policy/policy_1.xml]</pre>
<p>The client is able to operate in the following modes, and send the
_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev