Versions Compared

Key

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

...

For a list of prerequisites, see Prerequisites see the prerequisites to start the ESB samples.

...

This configuration file  synapse_sample_12.xml is available in the <ESB<EI_HOME>/repositorysamples/samples service-bus directory.

To build the sample

  1. Start the ESB profile with the sample 12 configuration. For instructions on starting a sample ESB configuration, see Starting the ESB with a sample configuration.

    The operation log keeps running until the server starts, which usually takes several seconds. Wait until the server has fully booted up and displays a message similar to "WSO2 Carbon started in n seconds."

  2. Start the Axis2 server. For instructions on starting the Axis2 server, see Starting the Axis2 server.

  3. Deploy the back-end service SimpleStockQuoteService. For instructions on deploying sample back-end services, see Deploying sample back-end services.

    Now you have a running ESB instance and a back-end service deployed. In the next section, we will send a message to the back-end service through the ESB using a sample client.

...

  • Run the following command from the <ESB<EI_HOME>/samples/axis2Client directory.

    Code Block
    languagebash
    ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=http://localhost:8280/ -Dmode=placeorder

...

If you send the client request through TCPmon,  you you will see that the SimpleStockQuoteService replies to the ESB with a HTTP 202 reply and then the ESB in turn . The ESB then replies to the client with a HTTP 202 acknowledgementacknowledgment.

Excerpt
hiddentrue

Example of message mediation in WSO2 ESB.