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
101
Sun Microsystems, Inc.
statement query) into the
otdInputDTD_CICSEMP
OTD and selects all available
records from the database. The Collaboration also writes a message to
JCD_PsSelect_output0.dat
to confirm when records are selected, or when no records
are available.
The
jcdPsSelect
Collaboration contains the Business Rules displayed in Figure 57.
Figure 57
jcdPsSelect
Sample code from the jcdPsSelect Includes:
package prjVSAM_JCDjcdALL;
public class jcdPsSelect
{
public com.stc.codegen.logger.Logger logger;
public com.stc.codegen.alerter.Alerter alerter;
public com.stc.codegen.util.CollaborationContext collabContext;
public com.stc.codegen.util.TypeConverter typeConverter;
public void receive(
com.stc.connector.appconn.file.FileTextMessage input,
otdVSAM.OtdVSAMOTD otdVSAM_1, dtd.otdOutputDTD_1935483687.Emp
otdOutputDTD_Emp_1, com.stc.connector.appconn.file.FileApplication
FileClient_1 )
throws Throwable
{
\\ Writes out a message stating records are being selected