Observing the Output

When you run the application, initially it will spend a few seconds to store the stock price data into the database. So, wait until the message "...ready to go!" is printed out on the screen as shown in Figure 8-11.

Figure 8-11 Output of the Stock Ticker Application in JDeveloper Log

Description of Figure 8-11 follows
Description of "Figure 8-11 Output of the Stock Ticker Application in JDeveloper Log"

After the message is displayed, the UCP demo server is up and running and you can use it by using the following steps:

  1. Enter the following URL in the address bar of your browser:

    http://localhost:8067

    The Universal Connection Pool Demo page is displayed.

    Figure 8-12 Retrieving Information from the Universal Connection Pool Using the Browser

    Description of Figure 8-12 follows
    Description of "Figure 8-12 Retrieving Information from the Universal Connection Pool Using the Browser"
  2. Click the links below the Try the Demo: section to retrieve stock price information from the database.

    Click Show UCP Properties to see the UCP properties:

    Figure 8-13 The UCP Properties page

    Description of Figure 8-13 follows
    Description of "Figure 8-13 The UCP Properties page"

    Click Get Stock Price from Database to run the stock ticker:

    Figure 8-14 The Stock Ticker Page on the Browser

    Description of Figure 8-14 follows
    Description of "Figure 8-14 The Stock Ticker Page on the Browser"

    Click Show UCP Statistics to see the UCP statistics:

    Figure 8-15 The UCP Statistics Page on the Browser

    Description of Figure 8-15 follows
    Description of "Figure 8-15 The UCP Statistics Page on the Browser"

    Click Dynamically Reconfigure UCP Properties to update the UCP properties:

    Note:

    You can change the UCP properties in the browser by clicking the Dynamically Reconfigure UCP Properties link. However, if you try to set a property that is not relevant for a single instance Database, then an exception may be thrown.

    Figure 8-16 The UCP Properties Update Page on the Browser

    Description of Figure 8-16 follows
    Description of "Figure 8-16 The UCP Properties Update Page on the Browser"

    Click Run Massive Website Client Access Simulation to simulate many stock ticker clients using the service simultaneously:

    Figure 8-17 The Client Simulator Page on the Browser

    Description of Figure 8-17 follows
    Description of "Figure 8-17 The Client Simulator Page on the Browser"

    This page provides the following fields:

    Field Description

    Ticket server URL

    Specifies the URL of ticker web service

    Number of simulated users (threads) to run

    Specifies the number of concurrent threads to run

    Number of ticket requests per user

    Specifies number of ticker requests per thread to run