This sample shows the basic use of the CICS® Transaction Gateway request monitoring
exits. The sample program writes the data available at each exit point
to STDOUT or to a file specified by the Java™ property com.ibm.ctg.samples.requestexit.out.
The class name for this sample is com.ibm.ctg.samples.requestexit.BasicMonitor.java
To enable the sample program on the Gateway daemon you must do
the following:
- Add ctgsamples.jar to the class path used when starting the CICS Transaction Gateway.
- Set the requestexits value in the configuration
file (ctg.ini) to com.ibm.ctg.samples.requestexit.BasicMonitor.
- On UNIX and Linux the sample program writes
the data available at each exit point to STDOUT by default. On Windows the sample program writes
the data available at each exit point to file basicMonitorOutput.txt
in the CICS TG data directory
by default. You can override the default output destination by setting
the Java property com.ibm.ctg.samples.requestexit.out
to specify the name of the file to write to.