Table of Contents |
---|
Introduction
This samples sample demonstrates how a message can be passed through the WSO2 ESB and logged before it is delivered to its receiver. This is the most a basic, introductory usecase of WSO2 ESB. In this sample, we will deploy a sample client and a sample back-end service and transfer a message to the back-end service from the client through the WSO2 ESB.
Prerequisites
To install WSO2 ESB and run the sample, you need:
- Java Development Kit/JRE version 1.6.* or 1.7.*
- Apache Ant 1.7.0 or later.
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 <ESB_HOME>/repository/samples directory contains the sample configurations for ESB. Since this is sample 0, execute the following command to start the Synapse configuration numbered 0.
For Windows
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)
Building the Sample
Run ESB in debug mode.
Go to the bin directory of the distribution and run the build.xml file which resides in that directory using Apache Ant.
...