Overview of data access beans in action

In this short example, you will build a simple application that displays employee data from the DB2 SAMPLE database. Before you proceed any further, make sure your workstation has DB2 installed.

Building this data access application involves the following steps:

  1. If necessary, set up access to DB2 from VisualAge for Java.
  2. Build the application UI in a visual composite named StaffList.
  3. Add a Select bean to StaffList and set up a database query.
  4. Connect the Select bean to the application UI.
  5. Test the finished application.

The StaffList application retrieves a list of employees from the SAMPLE database shipped with DB2 and enables you to traverse the list. The finished employee application will look like this:
Running StaffList application