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.java

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. 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.

Information Information

Feedback


Timestamp icon Last updated: Tuesday, 19 November 2013


https://ut-ilnx-r4.hursley.ibm.com/tg_latest/help/topic/com.ibm.cics.tg.doc//progde/BasicMonitor.html