On 03/29/10 11:42 AM, Gabriele Kahlout wrote: > So On the first connection to derby I must create in the > derby.system.home a derby.properties that tell's it to change its > derby.system.home to dir, so that there it finds another > derby.properties with the properties I want? And I must do that for > every connection/boot. >
No, you can't set derby.system.home in derby.properties, see http://db.apache.org/derby/docs/10.5/ref/crefproper51399.html. You'll have to set derby.system.home as a system property before you load the Derby driver, each time you run the application, if you're not happy with the default. > The idea is that I don't want to write in the user working directory > (the default for derby.system.home) any .properties or .log file, but > rather in my dir. > > How would you achieve this? Either run the application like this: java -Dderby.system.home=/path/to/mydir MyApp or add this call to your application before it loads the Derby driver: System.setProperty("derby.system.home", "/path/to/mydir"); -- Knut Anders
