WebSphere Enterprise Service Bus for z/OS, Version 6.2.0 Operating Systems: z/OS


Running the StockQuote sample

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 (SCA) and mediation functionality provided in WebSphere ESB.

About 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:

Figure 1. StockQuote overview
To run the StockQuote sample:
Procedure
  1. Start the server if it is not already started.
  2. From the administrative console, edit the URL to http://hostname:portnumber/WESBsamples (where hostname is the full name of your local host, and portnumber is the port number assigned to the server). The Welcome page of the Samples Gallery is displayed. StockQuote sample is listed as an installed sample in the Samples Gallery.
  3. Click Installed samples > Business Integration > StockQuote.
  4. Check the address of the Samples Gallery in the address field of the browser window. If the port number value is 9080, go to the next step, otherwise perform the following substeps.
    1. Open the administrative console and log in.
    2. Click Applications > Enterprise Applications. Available applications are displayed.
    3. Click StockQuote. The details of the StockQuote application are displayed.
    4. In the Module section, click Manage Modules.
    5. Click StockQuoteEJB. The details of the StockQuoteEJB.jar file are displayed.
    6. In the Web Services Properties section, click Web services client bindings.
    7. For sca/import/RealtimeService, click Edit in the Port Information column. The port information is displayed.
    8. In the Overidden Endpoint URL field, type http://hostname:nnnn/RealtimeService/services/RealtimeServiceSOAP, where hostname is either localhost or the host name of the machine where the server is running; andnnnn is the port number used for your default host.
    9. Click OK.
    10. For sca/import/DelayedService, click Edit in the Port Information column. The port information is displayed.
    11. In the Overidden Endpoint URL field, type http://hostname:nnnn/DelayedService/services/DelayedServiceSOAP, where hostname is either localhost or the host name of the machine where the server is running; andnnnn is the port number used for your default host.
    12. Click OK.
    13. Save your workspace changes to the master configuration and return to the Samples Gallery.
    The sample can now be run successfully on your server.
  5. Click Run and perform the following actions with each of the 2 customers to demonstrate the capabilities of the integrated service:
    1. Select a customer from the drop down list.
    2. Select one or more symbols.
    3. Click the Request button.

Results

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.

task Task topic

Terms of use | Feedback


Timestamp icon Last updated: 21 June 2010


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic//com.ibm.websphere.wesb620.zseries.doc/samples/webservices/sample_run.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).