NonStop Server for Java Programmer's Reference (NSJ 4.0+)
Table Of Contents

Tracing Using the java Command
This method applies only to JDBC Driver for SQL/MX.
Enable tracing by specifying the tracing system property by using the following arguments
when starting your Java program:
java -DtraceFile=logFile -DtraceFlag=n
The logFile is the file name that is to contain the tracing information. The n value for the
traceFlag can be the following values:
Value for n Description
0 No tracing.
1
Traces connection and
statement pooling calls only.
2
Traces entry point of all JDBC
methods.
Tracing Using the
system.setProperty Method
This method applies only to JDBC Driver for SQL/MX.
Enable tracing by using the System.setProperty(key, value) to set the same value
as described above. For example:
System.setProperty("traceFile", "myLogFile.log");
System.setProperty("traceFlag", "2");
Set the system property before the program makes any JDBC API calls.