Running sample client application
This section describes steps for running a sample client application inside the container and outside the container.
Run application inside the container
- Log in to the container.
docker exec -it <container-id> bash - Run a sample Java™ application inside the
container:
/opt/ibm/cicstg/jvm11/bin/java -cp /opt/ibm/cicstg/classes/ctgsamples.jar: \ /opt/ibm/cicstg/classes/ctgclient.jar com.ibm.ctg.samples. \ eci.EciB2 jgate=localhost jgateport=2006 prog0=ECIREADY COMMAREAlength=18Since you have configured the CICS Intercept plug-in, the request is intercepted by the plug-in and a response is sent back to the client.
Run application outside the container
Run the sample client application outside the container. Ensure you have the ctgclient.jar and
ctgsamples.jar in the CLASSPATH. You can download the ctgclient.jar and ctgsamples.jar from SDK or
copy them from the CICS TG container.
java -cp /opt/ibm/cicstg/classes/ctgsamples.jar:/opt/ibm/cicstg \
/classes/ctgclient.jar com.ibm.ctg.samples.eci.EciB2 jgate=localhost \
jgateport=2986 prog0=ECIREADY COMMAREAlength=18For the sample application, see Sample programs