Chapter 6

Section 6.5

Implementing the JDBC/ODBC eWay Sample Projects

Building and Deploying the prjJDBC_JCD Sample Project

ƒCreating the Collaboration Definitions (Java) on page 78

ƒCreate the Collaboration Business Rules on page 81

ƒBinding the eWay Components on page 87

ƒCreating an Environment on page 88

ƒConfiguring the eWays on page 89

ƒCreating the Deployment Profile on page 92

ƒCreating and Starting the Domain on page 93

ƒBuilding and Deploying the Project on page 94

ƒRunning the Sample on page 94

6.5.1Creating a Project

The first step is to create a new Project in the Enterprise Designer.

1Start the Enterprise Designer.

2From the Project Explorer tree, right-click the Repository and select New Project. A new Project (Project1) appears on the Project Explorer tree.

3Right-click Project1 and select Rename from the shortcut menu. Rename the Project (for this sample, prjJDBC_JCD).

6.5.2Creating the OTDs

The sample Project requires three OTDs to interact with the JDBC eWay. These OTDs include:

ƒJDBC Database OTD

ƒInbound DTD OTD

ƒOutbound DTD OTD

Steps required to create a JDBC Database OTD:

1Right-click your new Project in the Enterprise Designer’s Project Explorer, and select New > Object Type Definition.

The New Object Type Definition Wizard window appears.

2Select the JDBC Database OTD Wizard from the list of OTD Wizards and click Next.

3Enter the connection information for the JDBC database. Connection fields include:

ŠDriver Jar Files

ŠDriver Java Class Name

ŠURL Connection String

ŠUser name

ŠPassword

JDBC/ODBC eWay Adapter User’s Guide

75

Sun Microsystems, Inc.

Page 75
Image 75
Sun Microsystems JDBC/ODBC Adapter Creating a Project, Creating the OTDs, Steps required to create a Jdbc Database OTD