This section describes the operation of the BANKAPP sample from a user's perspective. The tasks described will help you understand some of the features BANKAPP provides and how end-users interact with the application.
Make sure that you have all required components installed, and have properly configured and started the application to run the BANKAPP sample. (For complete instructions on how to prepare to run the BANKAPP sample, refer to the BEA TUXEDO Builder Release Notes or the ReadMe
files for the Rose Expert sample application. For the location of the ReadMe
files, see What You Need to Start BANKAPP.)
The following sections take you through the process of running the Rose Expert non-database version of the BANKAPP command line client.
When you start the BANKAPP client; the main menu is displayed, followed by a prompt at which you can enter the number of the operation you want to use:
*** Builder BANKAPP Client - Menu ***
--- BACKOFFICE operations
--- 1=OPEN_ACCT, 2=CLOSE_ACCT
--- TELLER operations
--- 10=INQUIRY, 11=DEPOSIT, 12=WITHDRAWAL, 13=TRANSFER
--- EXIT=99
Enter operation #:
You can use the BACKOFFICE operations to open and close accounts, and the TELLER operations to perform a balance inquiry, deposit, withdrawal, or transfer on accounts.
To choose an operation, type the associated number at the "Enter operation #:" prompt, and press the Enter key. The BANKAPP client then leads you through an interactive process in which the client requests information from you, performs the operations requested based on your input, and returns the results to the screen display.
When an operation is completed, the menu is redisplayed and the "Enter operation #:" prompt returns.
(The section Example of BANKAPP Interactions shows an example of user input and BANKAPP client output for some of the available operations.)
At startup, the non-database BANKAPP server creates the following three default accounts:
You can add additional accounts up to a total of 50. When you have 50 accounts, the server will refuse further The BANKAPP server in the non-database BANKAPP sample has no persistent storage, so if you are using this version of the BANKAPP sample any data you enter is destroyed when you stop the BANKAPP server. Note also that, since in this version the server has no database/resource manager, This is not the case for the Oracle database enabled BANKAPP sample.
For more details on the BANKAPP samples (database and non-database enabled), refer to the Listing 5-1 provides an example of user input and output for:
Open Account
transactions.
Transfer
transactions that fail during the deposit phase will leave the in-memory database inaccurate. (For example, the withdrawal succeeds, but the deposit fails and the amount withdrawn disappears).
ReadMe
files for the Rose Expert sample application. (For the location of the ReadMe
files, see What You Need to Start BANKAPP.)
Example of BANKAPP Interactions
Sample user input is shown in bold.
Listing 5-1
Interacting with the BANKAPP Command Line Client
C:\Samples\RoseExpert\nodb\Bankapp>
BankappClient
*** Builder BANKAPP Client - Menu ***
--- BACKOFFICE operations
--- 1=OPEN_ACCT, 2=CLOSE_ACCT
--- TELLER operations
--- 10=INQUIRY, 11=DEPOSIT, 12=WITHDRAWAL, 13=TRANSFER
--- EXIT=99
Enter operation #:10
--- INQUIRY operation
Enter ACCOUNT_ID(nnnnnn):10001
Calling INQUIRY...
Output SBALANCE: $11.00
*** Builder BANKAPP Client - Menu ***
--- BACKOFFICE operations
--- 1=OPEN_ACCT, 2=CLOSE_ACCT
--- TELLER operations
--- 10=INQUIRY, 11=DEPOSIT, 12=WITHDRAWAL, 13=TRANSFER
--- EXIT=99
Enter operation #:11
--- DEPOSIT operation
Enter ACCOUNT_ID(nnnnnn):10001
Enter SAMOUNT(nnnnn.nn):200
Calling DEPOSIT...
Output SBALANCE: $211.00
Output STATLIN: Success
*** Builder BANKAPP Client - Menu ***
--- BACKOFFICE operations
--- 1=OPEN_ACCT, 2=CLOSE_ACCT
--- TELLER operations
--- 10=INQUIRY, 11=DEPOSIT, 12=WITHDRAWAL, 13=TRANSFER
--- EXIT=99
Enter operation #:10
--- INQUIRY operation
Enter ACCOUNT_ID(nnnnnn):10001
Calling INQUIRY...
Output SBALANCE: $211.00
*** Builder BANKAPP Client - Menu ***
--- BACKOFFICE operations
--- 1=OPEN_ACCT, 2=CLOSE_ACCT
--- TELLER operations
--- 10=INQUIRY, 11=DEPOSIT, 12=WITHDRAWAL, 13=TRANSFER
--- EXIT=99
Enter operation #:10
--- INQUIRY operation
Enter ACCOUNT_ID(nnnnnn):200000
Calling INQUIRY...
--- INQUIRYException:
--- STATLIN=Account Number not found
*** Builder BANKAPP Client - Menu ***
--- BACKOFFICE operations
--- 1=OPEN_ACCT, 2=CLOSE_ACCT
--- TELLER operations
--- 10=INQUIRY, 11=DEPOSIT, 12=WITHDRAWAL, 13=TRANSFER
--- EXIT=99
Enter operation #:99
C:\Samples\RoseExpert\nodb\Bankapp>
As shown on the *** Builder BANKAPP Client - Menu ***, to exit the BANKAPP application:
99
.