I think the problem is that you don't have a: torque.database.morpheus.adapter=<db server type>
property in your config file. Torque needs to know what the underlying database server type is so it can handle various DB server differences. It tries to figure this out two ways. The first (and recommended way) is via the adaptor property. The second is to try to match an adaptor to the driver class specifed. As long as Torque knows what the underlying DB Type is, it doesn't care about the jdbc driver. Unless the driver won't work with the commons dbcp pooling code for some reason. > -----Original Message----- > From: Luis Pablo Gallo [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 25, 2007 10:12 PM > To: [email protected] > Subject: p6spy > > Hi! I want to add the jdbc proxy p6spy to my application, but > Torque seems to ignore whatever I put in the > torque.dsfactory.morpheus.connection.driverparameter. > My full configuration is: > > torque.database.default = morpheus > torque.database.morpheus.adapter = com.p6spy.engine.spy.P6SpyDriver > > torque.dsfactory.morpheus.connection.driver = > com.p6spy.engine.spy.P6SpyDriver > torque.dsfactory.morpheus.connection.url = > jdbc:mysql://localhost:3306/morpheus?autoReconnect=true&useUni code=true&characterEncoding=utf8 > torque.dsfactory.morpheus.connection.user = morpheus > torque.dsfactory.morpheus.connection.password = morpheus > > torque.dsfactory.morpheus.factory = > org.apache.torque.dsfactory.SharedPoolDataSourceFactory > > torque.dsfactory.morpheus.pool.maxActive = 30 > torque.dsfactory.morpheus.pool.testOnBorrow = true > torque.dsfactory.morpheus.pool.validationQuery = SELECT 1 > > Any idea? I've searched half Internet and found nothing. > Thanks in advance!!! > > Luis Pablo > DukeCE Privacy Statement: Please be advised that this e-mail and any files transmitted with it are confidential communication or may otherwise be privileged or confidential and are intended solely for the individual or entity to whom they are addressed. If you are not the intended recipient you may not rely on the contents of this email or any attachments, and we ask that you please not read, copy or retransmit this communication, but reply to the sender and destroy the email, its contents, and all copies thereof immediately. Any unauthorized dissemination, distribution or copying of this communication is strictly prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
