Java BasicMonitor request monitoring exit sample
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
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.
- Data is written to STDOUT by default. To capture data to a file use the Java property
com.ibm.ctg.samples.requestexit.out
, for example:CTGSTART_OPTS=-j-Dcom.ibm.ctg.samples.requestexit.out=/zFS.file