hi,

the easiest is to use p6spy.

use the p6spy-driver in repository_database.xml :

...
                driver="com.p6spy.engine.spy.P6SpyDriver"
                protocol="jdbc"
                subprotocol="mysql"
                dbalias="//localhost:3306/ojb"
...

and define the realdriver spy.properties :

...
# mysql Connector/J driver
realdriver=com.mysql.jdbc.Driver
...

the appender (also in spy.properties) defines where the target for the output:

...
#specifies the appender to use for logging
#appender=com.p6spy.engine.logging.appender.Log4jLogger
appender=com.p6spy.engine.logging.appender.StdoutLogger
#appender=com.p6spy.engine.logging.appender.FileLogger
...

hth
jakob

Ajitesh Das schrieb:
Hi list:

How and what to turn on for ojb debug options, so that I can debug the
SQLs, generated from the OJB queries.


I am using : MSSQL and jtds driver.

Thanks



--

A good friend will come bail you out of jail...but, a true friend will
be sitting next to you saying, "Damn...that was fun."





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to