JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Java CAPS Adapter for DB2 Tutorials     Java CAPS Documentation
search filter icon
search icon

Document Information

Oracle Java CAPS Adapter for DB2 Tutorials

About the Oracle Java CAPS Adapter for DB2 Sample Projects

Sample Input Trigger Files and Output Files

Sample Project Data

Operations Used in the DB2 Sample Projects

About the Oracle Java CAPS Business Process Manager Project

Associating Business Process Manager Operators

Deploying JCD-Based Operations in the Business Process Manager

About the Java Collaboration Definition Sample Project

Importing Non-JBI Based Sample Projects

To Import a Non-JBI Based Sample Project

Running the SQL Script

Creating the Java Collaboration Definition-Based Project for the Oracle Java CAPS Adapter for DB2

Creating a New Project

Create a Project

Creating the OTDs

Create the DB2 Database OTD

Create the Inbound and Outbound DTD OTDs

Creating the Collaboration Definitions (Java)

Create the Java Collaborations

Using the Java Collaboration Editor to create Business Rules

Creating the Business Rules for the jcdDelete Collaboration

Create the jcdDelete Collaboration Business Rules

jcdDelete Collaboration Java Code

Creating the Business Rules for the jcdInsert Collaboration

Create the jcdInsert Collaboration Business Rules

jcdInsert Collaboration Java Code

Creating the Business Rules for the jcdPsSelect Collaboration

Using the Collaboration Editor's Java Source Editor

Create the jcdPsSelect Collaboration Business Rules

Creating the Business Rules for the jcdTableSelect Collaboration

Create the jcdTableSelect Collaboration Business Rules

jcdTableSelect Collaboration Java Code

Creating the Business Rules for the jcdUpdate Collaboration

Create the jcdUpdate Collaboration Business Rules

jcdUpdate Collaboration Java Code

Next Steps

Creating the Connectivity Maps

Adding Connectivity Maps to a Project

Add the Connectivity Maps to the Project

Populating and Binding the Connectivity Maps using the Connectivity Map Generator

Populate the Connectivity Maps using the Connectivity Map Generator.

Creating an Environment

Create the Environment

Configuring the Adapter Properties

Configuring the Connectivity Map Properties

Configure the Connectivity Map Properties

File1 Inbound Adapter Properties

File2 Outbound Adapter Properties

DB21 Outbound Adapter Properties

Configuring the Environment Properties

Configure the Environment Properties

File Adapter Environment Properties

DB2 Adapter Environment Properties

What's the Next Step?

Creating the Deployment Profile

Create the Deployment Profile

Building and Deploying the Project

Building the Project

Build the Project

Deploying the Project from NetBeans

Deploy the Project

Running the Project

Run the project

Creating the BPEL-Based Project for the Oracle Java CAPS Adapter for DB2

Creating the Business Processes

Create the bpDelete Business Process

Create the bpInsert Business Process

Create the bpPsSelect Business Process

Create the bpTableSelect Business Process

Create the bpUpdate Business Process

Using Business Process Designer to Create Business Rules

Creating the bpDelete Business Rules

Create the bpDelete Business Rules

Creating the bpInsert Business Rules

Create the bpInsert Business Rules

Creating the bpPsSelect Business Rules

Create the bpPsSelect Business Rules

Creating the bpTableSelect Business Rules

Create the bpTableSelect Business Rules

Creating the bpUpdate Business Rules

Create the bpUpdate Business Rules

Creating the Collaboration Definitions (Java)

The sample project uses five Java Collaboration Definitions. Once these Collaborations are created you can write the Business Rules for each using the Collaboration Editor.

Create the Java Collaborations

  1. Right-click your new Project in the Project window, and select New -> Collaboration Definition (Java) from the popup menu.

    The Collaboration Definition Wizard (Java) appears.

  2. Enter the name of the Collaboration (for this Collaboration enter jcdDelete) and click Next.
  3. In Step 2 of the wizard, double-click CAPS Components Library -> Adapters -> File -> FileClient -> receive to add the File Adapter's receive web service operation. Click Next.
  4. In Step 3 of the wizard, double-click prjDB2_JCD -> otdALL -> otdDB2. The otdDB2 OTD is added to the Selected OTDs field.
  5. Click the Up One Level button to return to Projects level, then select CAPS Components Library -> Adapters -> File -> FileClient to add the File Adapter's FileClient OTD to the Collaboration.
  6. Click Finish. The new Collaboration is added to your project's jcdALL node, in the Projects window.
  7. Create the other four Collaborations using the Collaboration Definition Wizard, similar to the way you created the jcdDelete Collaboration, but using the following parameters:
    Collaboration Names
    Web Service Operation to Implement
    Selected OTDs
    jcdInsert
    receive (CAPS Components Library -> Adapters -> File -> FileClient -> receive)
    otdDB2 (prjDB2_JCD -> otdALL -> otdDB2)
    otdInputDTD_DBemployees (prjDB2_JCD -> otdALL -> otdInputDTD_DBemployees)
    FileClient (CAPS Components Library -> Adapters -> File -> FileClient)
    jcdPsSelect
    receive (CAPS Components Library -> Adapters -> File -> FileClient -> receive)
    otdDB2 (prjDB2_JCD -> otdALL -> otdDB2)
    otdOutputDTD_DBemployees (prjDB2_JCD -> otdALL -> otdOutputDTD_DBemployees)
    FileClient (CAPS Components Library -> Adapters -> File -> FileClient)
    jcdTableSelect
    receive (CAPS Components Library -> Adapters -> File -> FileClient -> receive)
    otdDB2 (prjDB2_JCD -> otdALL -> otdDB2)
    otdOutputDTD_DBemployees (prjDB2_JCD -> otdALL -> otdOutputDTD_DBemployees)
    FileClient (CAPS Components Library -> Adapters -> File -> FileClient)
    jcdUpdate
    receive (CAPS Components Library -> Adapters -> File -> FileClient -> receive)
    otdDB2 (prjDB2_JCD -> otdALL -> otdDB2)
    FileClient (CAPS Components Library -> Adapters -> File -> FileClient)

Next Steps

For your next step, see Using the Java Collaboration Editor to create Business Rules.