I think that's there already, I'm using the following:

torque.database.default=ynotown
torque.database.ynotown.adapter=postgresql

torque.dsfactory.ynotown.factory=org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
torque.dsfactory.ynotown.pool.defaultMaxActive=30
torque.dsfactory.ynotown.pool.testOnBorrow=true
torque.dsfactory.ynotown.pool.validationQuery=SELECT 1
torque.dsfactory.ynotown.pool.defaultAutoCommit=true
torque.dsfactory.ynotown.connection.driver = org.postgresql.Driver
torque.dsfactory.ynotown.connection.url =
jdbc:postgresql://127.0.0.1:5432/ynotown
torque.dsfactory.ynotown.connection.user = xxxx
torque.dsfactory.ynotown.connection.password = xxxx

Look ma, no JND! =)

-james

On Fri, 2002-05-31 at 15:50, Daniel Rall wrote:
> Would it be possible to adds some defaults so that it isn't absolutely
> necessary to deal with the JNDI datasource stuff in your properties
> file?
> 
> John McNally <[EMAIL PROTECTED]> writes:
> 
> > yes.  I will work on a doc.  You can look at
> > src/rttest/Torque.properties for an example, but it probably needs more
> > explanation than that.
> >
> > john mcnally
> >
> > On Wed, 2002-05-22 at 15:40, James A. Hillyerd wrote:
> > > Torque won't init for me anymore, I get a null pointer exception.  Looks
> >> like the following is returning null:
> >> 
> >> Configuration c = configuration.subset("datasource");
> >> 
> >> which trips up this line of code:
> >> 
> >> Iterator i = c.getKeys();
> >> 
> >> Do we need to add new stuff to the Torque.properties file?
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
-- 
[]  James A. Hillyerd <[EMAIL PROTECTED]> - Java Software Engineer
[]  PGP 1024D/D31BC40D F87B 7906 C0DA 32E8 B8F6 DE23 FBF6 4712 D31B C40D


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

Reply via email to