Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Setup instructions are given in section Installation Prerequisites.

 

Building the Sample

To start the ESB, simply execute wso2server.bat or wso2server.sh script found in <ESB_HOME>/bin directory. This starts up an instance of the ESB using Synapse and Axis2 configuration files located in <ESB_HOME>/repository/conf directory.

But to build and run samples, the ESB should be started with a sample configuration by executing wso2esb-samples.bat (for Windows) or wso2esb-samples.sh (for Linux) script found in <ESB_HOME>/bin directory. The sample configurations for ESB can be found in <ESB_HOME>/repository/samples directory contains the sample configurations for ESB.

1. Since this is sample 0, execute the following command to start the Synapse configuration numbered 0.

For Windows

 

It will start an instance of the ESB in the configuration used for this sample.

On text Linux console:

Code Block
wso2esb-samples.sh -sn 0

On Windows command prompt:

Code Block
wso2esb-samples.bat -sn 0

 

Start the Axis2 server and deploy the SimpleStockQuoteService if not already deployed. (PDF section Starting the Sample Services)2. A message will appear on the command or Linux console if the server started successfully.

3. Next, deploy the back-end service SimpleStockQuoteService.

Building the Sample

Run ESB in debug mode.

...