Well, RecoverableDataSourceFactory is apparently just one of the standard Torque drivers, which we just happen to store in a logical location in our source tree. The comment at the top of that source file says:

/**
 * A factory that looks up the DataSource using the JDBC2 pool methods.
 *
 * @author <a href="mailto:[EMAIL PROTECTED]">John McNally</a>
 * @author <a href="mailto:[EMAIL PROTECTED]">Henning P. Schmiedehausen</a>
* @version $Id: SharedPoolDataSourceFactory.java,v 1.1 2003/08/19 19:09:12 mpoeschl Exp $
 */

So I don't think that's too weird...

Alvaro Coronel wrote:
torque.dsfactory.recoverable.connection.url looks yucky.


"Owen B. Mehegan" <[EMAIL PROTECTED]> wrote: Hi, I've seen this question asked many times in the mailing list archives, but so far I can't figure out a solution to the problem in my case. I have a unit test that is using Easymock to create mock database objects to test against. When I run the test, it always fails with this error:

java.lang.NullPointerException: There was no DataSourceFactory configured for the connection recoverable

But my Torque.properties _does_ include a datasource called 'recoverable:'

torque.dsfactory.recoverable.factory=com.friend.db.RecoverableDataSourceFactory
torque.dsfactory.recoverable.pool.maxActive=1
torque.dsfactory.recoverable.pool.maxIdle=1
torque.dsfactory.recoverable.pool.maxWait=1000
torque.dsfactory.recoverable.pool.testOnBorrow=false
torque.dsfactory.recoverable.pool.validationQuery=SELECT 1
torque.dsfactory.recoverable.connection.driver=com.mockrunner.mock.jdbc.MockDriver
torque.dsfactory.recoverable.connection.url = java://foo
torque.dsfactory.recoverable.connection.user = user
torque.dsfactory.recoverable.connection.password = foo

This entry is similar to others in the torque.properties, so I don't think the syntax is incorrect. What else could I be doing wrong?


--
Owen B. Mehegan
Database Framework QA Guy
"He is a dangerous mixture of sophistication and recklessness which
makes one anxious about his influence on other boys."

[EMAIL PROTECTED]
YIM: omehegan
AIM: ottomaticjack
GTalk: [EMAIL PROTECTED]

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

Reply via email to