db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinkan <shin...@gmail.com>
Subject Re: Programatically set torque.dsfactory.<MY_BASE>.connection.url
Date Fri, 29 Aug 2008 09:06:02 GMT
Hi everyone.

Thanks to your pointers, I've found how to proceed. This is what I do :

You have to load "manually" your Torque properties file instead of
deleguating this to Torque.init( String filePath ).
  - Create a PropertiesConfiguration : PropertiesConfiguration torqueConf =
new PropertiesConfiguration();
  - Load the .properties file :
  - Add the properties you don't have to store in your configuration file :
    torqueConf.addProperty(_torqueConnectUrlProperty, PSCSGBD.CONNECT);
  - Then, use the Torque.init( Configuration conf ) method :
  - You can check good ignition by calling Torque.isInit().

Have a good day !

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