Sun Adapter for Oracle Tutorials

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.

ProcedureCreate the jcdDelete Collaboration Definition

  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 prjOracle_JCD -> otdALL -> otdOracle. The otdOracle 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)

    otdOracle (prjOracle_JCD -> otdALL -> otdOracle)

    otdInputDTD_DBemployees (prjOracle_JCD -> otdALL -> otdInputDTD_DBemployees)

    FileClient (CAPS Components Library -> Adapters -> File -> FileClient) 

    jcdPsSelect 

    receive (CAPS Components Library -> Adapters -> File -> FileClient -> receive)

    otdOracle (prjOracle_JCD -> otdALL -> otdOracle)

    otdOutputDTD_DBemployees (prjOracle_JCD -> otdALL -> otdOutputDTD_DBemployees)

    FileClient (CAPS Components Library -> Adapters -> File -> FileClient) 

    jcdTableSelect 

    receive (CAPS Components Library -> Adapters -> File -> FileClient -> receive)

    otdOracle (prjOracle_JCD -> otdALL -> otdOracle)

    otdOutputDTD_DBemployees (prjOracle_JCD -> otdALL -> otdOutputDTD_DBemployees)

    FileClient (CAPS Components Library -> Adapters -> File -> FileClient) 

    jcdUpdate 

    receive (CAPS Components Library -> Adapters -> File -> FileClient -> receive)

    otdOracle (prjOracle_JCD -> otdALL -> otdOracle)

    FileClient (CAPS Components Library -> Adapters -> File -> FileClient) 

Next Steps

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