Hello, I am using jetspeed/turbine/torque, my default connection
works fine but I am having a problem using a second connection. My
Torque.properties contains : torque.database.default=default ### torque.database.default.adapter=hypersonic torque.database.default.adapter=mysql torque.database.trdb.adapter=oracle ### torque.database.default.adapter=mssql ## ## Using torque's old pool ## ### torque.dsfactory.default.connection.driver =
org.hsqldb.jdbcDriver ### torque.dsfactory.default.connection.url = ""> ### torque.dsfactory.default.connection.user = sa ### torque.dsfactory.default.connection.password = torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory # The number of database connections to cache per
ConnectionPool instance (specified per database) torque.dsfactory.default.pool.defaultMaxConnections=10 torque.dsfactory.default.pool.maxExpiryTime=3600 torque.dsfactory.default.pool.connectionWaitTimeout=10 ### MySQL torque.dsfactory.default.connection.driver =
org.gjt.mm.mysql.Driver torque.dsfactory.default.connection.url = ""> torque.dsfactory.default.connection.user = **** torque.dsfactory.default.connection.password = **** torque.dsfactory.trdb.factory=org.apache.torque.dsfactory.TorqueDataSourceFactory # The number of database connections to cache per
ConnectionPool instance (specified per database) torque.dsfactory.trdb.pool.defaultMaxConnections=10 torque.dsfactory.trdb.pool.maxExpiryTime=3600 torque.dsfactory.trdb.pool.connectionWaitTimeout=10 ### Oracle torque.dsfactory.trdb.connection.driver=oracle.jdbc.driver.OracleDriver torque.dsfactory.trdb.connection.url=""> torque.dsfactory.trdb.connection.username=**** torque.dsfactory.trdb.connection.password=**** When I try and get a connection to trdb from my portlet, I
get the following error : There was no DataSourceFactory configured for the
connection trdb java.lang.NullPointerException: There was no
DataSourceFactory configured for the connection trdb I cannot figure this out – any ideas? Many thanks, Richard. |
smime.p7s
Description: S/MIME cryptographic signature