Chapter 6
Section 6.5
Implementing the JDBC/ODBC eWay Sample Projects
Building and Deploying the prjJDBC_JCD Sample Project
JDBC/ODBC eWay Adapter User’s Guide
75
Sun Microsystems, Inc.
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.1
Creating a Project
The first step is to create a new Project in the Enterprise Designer.
1
Start the Enterprise Designer.
2
From the Project Explorer tree, right-click the Repository and select
New
Project
. A
new
Project (
Project1
) appears on the Project Explorer tree.
3
Right-click
Project1
and select
Rename
from the shortcut menu. Rename the Project
(for this sample,
prjJDBC_JCD
).
6.5.2
Creating 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:
1
Right-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.
2
Select the
JDBC Database OTD Wizard
from the list of OTD Wizards and click
Next
.
3
Enter the connection information for the JDBC database. Connection fields include:
Driver Jar Files
Driver Java Class Name
URL Connection String
User name
Password