The WebSphere ESB StockQuote
sample demonstrates how you can easily integrate disparate services and manipulate
in-flight messages without affecting the applications. This is achieved through
the Service Component Architecture and mediation functionality provided in WebSphere ESB.
Why and when to perform this task
A financial services company provides an interactive web-based
stock market service to its customers. The company wants to differentiate
itself from its competition by offering tiered levels of service. They want
to offer delayed stock quotes to their standard customers and real
time quotes to their premium customers (customers who pay a subscription).
The
company wants to:
- Make the delayed stock quote service available to all customers.
- Log all requests to the service to satisfy audit requirements.
- Make the real time stock quote service available to premium customers.
Figure 1. StockQuote overview
To run the StockQuote sample:
Steps for this task
- Launch the First Steps console.
- Start the server if it is not already started.
- Start the Samples Gallery by clicking Samples Gallery on
the First Steps panel. The WebSphere ESB StockQuote
sample is listed as an installed sample in the Samples Gallery.
- Click and
follow the instructions that appear in the browser window for installation.
- Click Run and perform the following actions
with each of the 2 customers to demonstrate the capabilities of the integrated
service:
- Select a customer from the drop down list.
- Select one or more symbols.
- Click the Request button.
Result
Customer A,
a standard customer, will receive time delayed
quotes. Customer B,
a premium customer, will receive real time quotes.
What to do next
You can learn about the artifacts used in the sample from the Technotes
provided in the Samples Gallery.
If you have
WebSphere Integration Developer installed
you can also
- Open the sample artifacts in WID.
- Build your own version of the sample.
- Deploy your own version of the sample in WebSphere ESB.