Sun Adapter for DB2 Tutorials

About the Sun Adapter for DB2 Sample Projects

Topics covered in this section include:

The Sun Adapter for DB2 Sample Project Zip file contains two sample Projects, one that is Java Collaboration Definition (JCD)-based, and one that uses the Sun Business Process Manager (BPM).

Both the prjDB2_JCD and prjDB2_BPEL sample projects demonstrate how to:

Sample Input Trigger Files and Output Files

In addition to the sample projects, the DB2.zip file also includes six sample input trigger files and ten sample output files

Sample input files

Sample output JCD files

Sample output BPM files

Sample Project Data

Data used for the sample projects are contained within a table called db_employee. The table has three columns, as follows:

Table 1 Sample Project Data - db_employee Table

Column Name 

Data Type 

Data Length 

emp_no 

INTEGER 

10 

last_name 

VARCHAR 

30 

first_name 

VARCHAR 

30 

rate 

FLOAT 

15 

last_update 

TIMESTAMP 

19 


Note –

DB2 databases do not accept table data with columns that include Boolean data types. For example, an DB2 server expects a literal “T” or “F” for True or False Boolean values, and does not accept Java primitive Boolean True or False values.


Operations Used in the DB2 Sample Projects

The following database operations are used in both the Java Collaboration Definition-based and Business Process Manager sample projects: