Making External Call Interface calls from a Java Client program

This section describes how to run a program on a CICS® server using ECI calls from a Java™ Client application. Use the com.ibm.ctg.client.ECIRequest base class and the JavaGateway flow method to pass details of an ECI request to the CICS Transaction Gateway. Table 1 shows Java objects corresponding to the ECI terms described in Input and output information for external calls to CICS.

Table 1. ECI terms and corresponding Java objects
ECI term Java object.field or object.method()
Abend code ECIRequest.Abend_Code
Start of changeChannelEnd of change Start of changesetChannel(Channel)End of change
COMMAREA ECIRequest.Commarea
ECI timeout ECIRequest.setECITimeout(short)
LUW control ECIRequest.extend_mode
LUW identifier ECIRequest.Luw_Token
Password ECIRequest.Password
Program name ECIRequest.Program
Server name ECIRequest.Server
SocketConnectTimeout ECIRequest:SocketConnectTimeout
TPNName ECIRequest.Call_Type = ECI_SYNC_TPN or ECI_ASYNC_TPN
TranName ECIRequest.Call_Type = ECI_SYNC or ECI_ASYNC
User ID ECIRequest.Userid