OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/J

[Contents][Index][Back][Next]

3.2.4 Instructing trace output

To obtain various traces, specify necessary information either in the TP1/Client/J environment definition or in the applicable methods during execution.

In the case of Java applets, you cannot collect traces due to security limitations. In the case of Java servlets, security limitations depend on the application server being used; for details, see the documentation for your application server. The four methods for changing the settings for whether or not traces are to be obtained during execution are setUapTraceMode, setDataTraceMode, setErrorTraceMode, and setMethodTraceMode.

For details about the contents of the trace files, see 2.11.1 Contents of trace files. The specified traces are output when the following methods are executed.

setUapTraceMode method
Specifies that information about the call to each method of the TP1Client class is to be output to a file.

setDataTraceMode method
Specifies that data on communication with TP1/Server is to be output to a file.

setErrorTraceMode method
Specifies that information on errors is to be output to a file.

setMethodTraceMode method
Specifies that activities of internal methods of the TP1Client class are to be output to a file. Because there is little available error information in a Java environment, this information is used to determine the processing that resulted in an error.