JoltBeans Class Library Walkthrough

This walkthrough describes how to build an applet that you use to:

  • Enter an account ID
  • Click on the Inquiry button
  • Display the balance of the account (shown in the following figure)

The following figure shows an example of a completed Java form containing JoltBeans. The applet implements the client functionality for the INQUIRY service of the BANKAPP sample that is included with Oracle Tuxedo. To run this sample, the Oracle Tuxedo server must be running.

Figure 5-4 Sample Inquiry Applet

Sample Inquiry Applet Diagram

Refer to the figure “Visual Café 3.0 Form Designer” on page 5‑18 for an example of each item required by the Java form. Each item in that figure is described in the following table.

Table 5-4 Required Form Elements

Element Purpose
Applet (or JApplet, if JFC applet is chosen A form used to paint the beans in your development environment.
JoltSessionBean Logs on to an Oracle Tuxedo session.
JoltTextField Gets input from the user (in this case, ACCOUNT_ID).
JoltTextField Displays the result (in this case, SBALANCE).
JoltServiceBean Accesses an Oracle Tuxedo service. (In this case, INQUIRY from BANKAPP).
Button Initiates an action.
Label Describes the field on the applet.