Chapter 7
Section 7.6
Implementing the VSAM eWay Sample Projects
Building and Deploying the prjVSAM_JCD Sample Project
VSAM eWay Adapter User’s Guide
98
Sun Microsystems, Inc.
6
Click 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.
7
Click
Finish
. The Collaboration Editor with the new
jcdTableSelect
Collaboration
appears in the right pane of the Enterprise Designer.
jcdUpdate Collaboration
Steps required to create the jcdUpdate Collaboration:
1
From the Project Explorer, right-click the sample Project and select
New
>
Collaboration Definition
(Java)
from the shortcut menu. The
Collaboration
Definition Wizard (Java)
appears.
2
Enter a Collaboration Definition name (for this sample
jcdUpdate
) and click
Next
.
3
For 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
.
4
For Step 3 of the wizard, from the Select OTDs selection window, double-click
prjVSAM_JCD > otdALL > otdVSAM
. The
otdVSAM
OTD is added to the
Selected OTDs field.
5
Click 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.
6
Click
Finish
. The Collaboration Editor with the new
jcdUpdate
Collaboration
appears in the right pane of the Enterprise Designer.
7.6.5
Create the Collaboration Business Rules
The next step in the sample is to create the Business Rules of the Collaboration using
the Collaboration Editor.
Creating the jcdDelete Business Rules
The
jcdDelete
Collaboration implements the Input Web Service Operation to read the
TriggerDelete.in
file and then delete a record under a specific criteria. The
Collaboration also writes a message to
JCD_Delete_output0.dat
to confirm a deleted
record.
Note:
The where clause in the business rule reads the trigger value as a placeholder for
input. This permits you to modify the query to select a specific record. Also note that
all records are deleted from the database when the TriggerDelete.in file is empty.
The
jcdDelete
Collaboration contains the Business Rules displayed in Figure 55.