db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Göschl,Siegfried" <Siegfried.Goes...@drei.com>
Subject How to add P6Spy: WAS: Printing SQL
Date Mon, 08 Dec 2003 18:34:06 GMT
Hi Sonu,

some help for an entry level programmer with a console application - life is harsh sometimes
 ... :-)

+) add the p6spy.jar to your classpath
+) copy the spy.properties into your classpath (same location as log4j.properties)
+) set the real driver in spy.properties, e.g. realdriver=oracle.jdbc.driver.OracleDriver
in my case
+) change the Torque.properties, e.g. torque.dsfactory.XXX.connection.driver = com.p6spy.engine.spy.P6SpyDriver

The program creates a spy.log in your current directory ... piece of cake looking at it ...


Siegfried Goeschl

To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message