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:
  1. Add ctgsamples.jar to the class path used when starting the CICS Transaction Gateway.
  2. Set the requestexits value in the configuration file (ctg.ini) to com.ibm.ctg.samples.requestexit.BasicMonitor.
  3. 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