Chapter 6

Section 6.5

Implementing the JDBC/ODBC eWay Sample Projects

Building and Deploying the prjJDBC_JCD Sample Project

ŠjcdInsert

ŠjcdPsSelect

ŠjcdTableSelect

ŠjcdPsUpdate

6.5.4Creating the Collaboration Definitions (Java)

The next step is to create Collaborations using the Collaboration Definition Wizard (Java). Since the sample Project includes five database operations, you must create five separate Collaboration Definitions (Java), or JCDs. Once you create the Collaboration Definitions, you can write the Business Rules of the Collaborations using the Collaboration Editor.

JCDs required for the prjJDBC_JCD sample include:

ƒjcdDelete

ƒjcdInsert

ƒjcdPsSelect

ƒjcdTableSelect

ƒjcdPsUpdate

jcdDelete Collaboration

Steps required to create the jcdDelete Collaboration:

1From the Project Explorer, right-click the sample Project and select New > Collaboration Definition (Java) from the shortcut menu. The Collaboration Definition Wizard (Java) appears.

2Enter a Collaboration Definition name (for this sample jcdDelete) and click Next.

3For Step 2 of the wizard, from the Web Services Interfaces selection window, double-click Sun SeeBeyond > eWays > File > FileClient > receive. The File Name field now displays receive. Click Next.

4For Step 3 of the wizard, from the Select OTDs selection window, double-click prjJDBC_JCD > otdALL > otdJDBC. The otdJDBC OTD is added to the Selected OTDs field.

5Click the Up One Level button twice to return to the Repository. Double-click Sun SeeBeyond > eWays > File > FileClient. The Selected OTDs field now lists the FileClient OTD.

6Click Finish. The Collaboration Editor with the new jcdDelete Collaboration appears in the right pane of the Enterprise Designer.

JDBC/ODBC eWay Adapter User’s Guide

78

Sun Microsystems, Inc.

Page 78
Image 78
Sun Microsystems JDBC/ODBC Adapter manual Creating the Collaboration Definitions Java, JcdDelete Collaboration