Running the Clients

Running the Application Client

To run the application client, follow these steps:

  1. In a terminal window, go to <INSTALL>/javaee5tutorial/examples/dukesbank/.
  2. Enter the following command:
  3.   ant run

  4. At the login prompts, type bankadmin for the user name and javaee for the password. The next thing you should see is the application shown in Figure 38-5.

BankAdmin Application Client

Figure 38-5 BankAdmin Application Client

Running the Web Client

To run the web client, follow these steps:

  1. Open the bank URL, http://localhost:8080/bank/main.faces, in a web browser.
  2. The application will display the login page. Enter 200 for the customer ID and javaee for the password. Click Submit.
  3. Select an application function: Account List, Transfer Funds, ATM, or Logoff. When you have a list of accounts, you can get an account history by selecting an account link.

Note: The first time you select a new page, particularly a complicated page such as an account history, it takes some time to display because the Application Server must translate the page into a servlet class and compile and load the class.


If you select Account List, you will see the screen shown in Figure 38-6.

Web Client Account List

Figure 38-6 Account List