Sure thing...

Here is my current Torque.properties.sample file in its entirety:


#-------------------------------------------------
# Torque.properties.sample
#
# Most of these properties should remain the
# same for your setup.  You should only need
# to change the user and password of the
# database - top of file
#
#-------------------------------------------------


#-------------------------------------------------
# Normally edited properties
#-------------------------------------------------

torque.dsfactory.foo.connection.user =
torque.dsfactory.foo.connection.password =

#-------------------------------------------------
# End normally edited properties
#-------------------------------------------------

torque.applicationRoot = .

## Logging

log4j.category.org.apache.torque = INFO, torque
log4j.appender.org.apache.torque = org.apache.log4j.FileAppender
log4j.appender.org.apache.torque.file = ${torque.applicationRoot}/logs/torque.log
log4j.appender.org.apache.torque.layout = org.apache.log4j.PatternLayout
log4j.appender.org.apache.torque.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.org.apache.torque.append = false

## Database Settings

torque.database.default=foo
torque.database.foo.adapter=mysql

torque.manager.useCache = true

torque.dsfactory.foo.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory
torque.dsfactory.foo.pool.defaultMaxConnections=10
torque.dsfactory.foo.pool.maxExpiryTime=3600
torque.dsfactory.foo.pool.connectionWaitTimeout=10
torque.dsfactory.foo.connection.driver = com.mysql.jdbc.Driver
torque.dsfactory.foo.connection.url = jdbc:mysql://localhost:3306/foo


I never did get the logging to work correctly (so you can most likely ignore it - what 
can I say
I've been lazy), but the rest should be good.  Of course, replace foo with your 
database name.



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

Reply via email to