You can use DataDirect Spy to track JDBC calls made by a running application with any of these features. The com.ddtek.jdbcx.datasource.
DriverDataSource class, where
Driver is the driver name, supports setting a semi-colon-separated list of DataDirect Spy attributes (see
DataDirect Spy™ Attributes).
Refer to the DataDirect Connect Series for JDBC User’s Guide for more information about configuring data sources.
Using this example, DataDirect Spy would load the DB2 driver and log all JDBC activity to the spy.log file located in the
C:\temp directory (
log=(file)C:\\temp\\spy.log). In addition to regular JDBC activity, the spy.log file also logs activity on InputStream and Reader objects (
logIS=yes). It also includes the name of the current thread (
logTName=yes).
Using this example, DataDirect Spy would load the Oracle driver and log all JDBC activity to the spy.log file located in the
/tmp directory (
log=(file)/tmp/spy.log). The spy.log file includes the name of the current thread (
logTName=yes).