db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinkan <shin...@gmail.com>
Subject Programatically set torque.dsfactory.<MY_BASE>.connection.url
Date Thu, 28 Aug 2008 09:00:09 GMT
Hi everybody !

I encounter a quite disturbing problem with Torque.
I use it over Apache Derby, and I need to set a password encrypted secure
connection to my Derby base.
So the resulting JDBC connection line is something like :
Due to obvious security reason, I CAN NOT put this connection string on a
config file for my app, or everybody would be able to read the pass, and
connect to the base using other ways that my application plans to.
So I MUST define the "torque.dsfactory.mybase.connection.url" somewhere else
than in "Torque.properties".

I tried this :

But later in my app, when I use SomeTablePeer::retrieveByPk( ... );
Torque throws an SQLException error, pretending that "The url cannot be
So I deduce this is because the "setProperty" doesn't set the
torque.dsfactory.mybase.connection.url correctly ...
If I put the connection string in Torque.properties, everything is OK. BUT I
So I would like to know how to proceed to set this connection.url without
using config files ...

Thanks in advance everyone !

Some people, when confronted with a problem, think "I know, I'll use XML".
Now they have two problems. -- Jamie Zawinski / James Robertson

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message