uCosminexus Application Server, First Step Guide

[Contents][Glossary][Back][Next]

2.8.6 Debugging the sample project (Bank)

Deploy the sample project (Bank) that was imported in 2.8.4 Importing the sample project (Bank) on to a J2EE server, and then check whether the project runs properly.

Organization of this subsection
(1) Deploying the sample project (Bank)
(2) Operating the sample project (Bank)

(1) Deploying the sample project (Bank)

To deploy the sample project (Bank).

Operation procedure

  1. In the Project Explorer view, select Bank, right click to select Debug As, and then Debug on Server.
    The Debug on Server dialog box appears.
  2. In the Debug on Server dialog box, select localhost and InstantJ2EEServer at localhost in the list of servers, and then click the Finish button.
    The J2EE server (InstantJ2EEServer) starts, the sample project (Bank) is published, and a Web browser is accessed at the same time, and the sample application (Bank) window appears in the Web browser.
    Note that at this time, the J2EE server (InstantJ2EEServer) starts in the debug mode.

    [Figure]

(2) Operating the sample project (Bank)

The sample project (Bank) is a program for transferring the funds of the specified user from the Checking Account to the Savings Account.

If you perform the following operations, the specified funds will be remitted from the Checking Account to the Savings Account of the specified user:

Operation procedure

  1. In the displayed window, enter the User ID of the user who sends the remittance, and also enter the Transaction amount.
    Enter the following values in this window:
    User ID: 001
    Transaction amount: 500
  2. Click the Transfer button.
    In the displayed table of this window, confirm that the Checking Account balance of the User ID "001" is reduced to "9500" and that the Savings Account balance is increased to "1000".

The funds are managed in the database. The Checking Account table and Savings Account table are updated during the fund transfer. You can verify the updated amount that is applied in the table displayed in the same window.

With this, the operations of the sample project (Bank) described in Chapter 2 are completed.