...
- Download the
MessageChannel.zip
file, which includes the ESB configuration described above. See Setting up the Environment for instructions on setting up the ESB and the back-end service.
Info When you set up the environment, note that you only need to start one instance of the back-end service (Stock Quote Service) to simulate this example.
Executing the sample
Let's send a request to the ESB using the Stock Quote Client application. Find out more about the Stock Quote Client from the ESB documentation.
...
When you execute the command above, the ESB first receives the message and then routes it to the back-end service (StockQuoteService). The following output will be printed on the Axis2 server's console:
Code Block |
---|
samples.services.SimpleStockQuoteService :: Generating quote for : IBM |
The generated stock quote will then be sent to the client application (Stock Quote Client). The following output will be printed on the client application's console:
Code Block |
---|
Standard :: Stock price = $72.42070059233666 |