Hallo Siegfried, Thank you for your reply.
G�schl,Siegfried wrote:
Some guess since Torque is a service you would additionaly need:
+) Torque.shutdown() +) Torque.initialize()
The shutdown did it! I had tried Torque.initialize() on its own before - to no avail.
Here's an example how to change, for instance, the URL:
Configuration config = Torque.getConfiguration();
String key = "dsfactory.mydb.connection.url";
url = StringUtils.replace(url,"$host",host);
config.setProperty(key,url);
url = config.getString(key);
Torque.shutdown();
try
{
Torque.init(config);
}
catch (Exception e)
{
...
}
Regards/Gru�,
Tarlika Elisabeth Schmitz
-----Original Message-----
From: T E Schmitz [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 11. August 2004 09:57
To: [EMAIL PROTECTED]
Subject: Re: Specify hostname upon DB connect
I tried to implement a reconfiguration of Torque at runtime following the advice Guy Galil kindly provided below.
I just changed the URL but I didn't manage to get this change to take effect:
Configuration config = Torque.getConfiguration(); config.setProperty(urlKey, newValue); Torque.setConfiguration(config);
What do I need to do to get the new config property value to take effect using Torque 3.1?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
