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

Tracing by Loading the Trace Driver
Within the Program
Enable tracing by loading the JDBC trace driver within the program by using the
Class.forName("com.tandem.jdbc.TDriver") method. This method also requires
that you set the DriverManager.setLogWriter method.
Tracing Using a Wrapper Data Source
Enable tracing by creating a wrapper data source around the data source to be traced. The
wrapper data source contains the TraceDataSource property that you can set to the data
source to be traced. For information about demonstration programs that show using this
method, see JDBC Trace Facility Demonstration Programs.
Output Format
The format of the trace output is as follows:
jdbcTrace:[thread-id]:[object-id]:className.method(param...)
where
thread-id
is the String representation of the current thread
object-id
is the hashcode of the JDBC object
className
is the JDBC implementation class name
Trace output is sent to the PrintWriter specified in the setLogWriter method.