To test that your scenario is configured correctly, start the CICS® Transaction Gateway and use the CICS TG Java™ sample EciB2 to call CICS server program EC01.
java com.ibm.ctg.samples.eci.EciB2
jgate=localhost server=CICSA prog0=EC01 commarealength=18
userid=USERID password=PASSWORD ebcdic
The ebcdic option is not required if you have set up a definition for EC01 in the DFHCNV data conversion macro on CICS.
The output from the command is as follows:
CICS Transaction Gateway Basic ECI Sample 2
Test Parameters
CICS TG address : localhost:2006
Client security : null
Server security : null
CICS Server : CICSA
UserId : USERID
Password : PASSWORD
Data Conversion : ASCII
Commarea : null
Commarea length : 18
Number of programs given : 1
[0] : EC01
Connect to Gateway
Successfully created JavaGateway
CICS servers defined:
System : CICSA
Call Programs
About to call : EC01
Commarea :
Extend_Mode : 0
Luw_Token : 0
Commarea : 24/06/09 11:17:19
Return code : ECI_NO_ERROR(0)
Abend code : null
Successfully closed JavaGateway
In the CICS job log you will see this message:
DFHIS2001 ... Client session from applid MYAPPL accepted for
IPCONN IPC50889.
Issuing CEMT INQ TCPIPSERVICE shows that
the connection count has increased to 1. CEMT INQ TCPIPSERVICE
STATUS: RESULTS - OVERTYPE TO MODIFY
Tcpips(SRV50889) Ope Por(50889) Ipic Nos Tra(CISS)
Con(00001) Bac( 00001 ) Max( 000000 ) Urm(NO )
The
IPCONN connection remains established until the connection is explicitly
released, either by CICS TS
or CICS TG. DFHIS1027 ... Security violation has been detected using
IPCONN IPC50889 and transaction id CPMI by userid CICSUSER
DFHIS3001 ... IPCONN autoinstall rejected after a connection
was received on TCPIPSERVICE SRV50889 from host 1.23.456.789
because the TCPIPSERVICE has URM(NO)