db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject Re: Hanging around derby.log, how to center it?
Date Wed, 17 Mar 2010 21:58:44 GMT
On 03/17/10 22:10, Gabriele Kahlout wrote:
> Does this look okay:
> 
>   final Properties prop = new java.util.Properties();
>             prop.store(new FileOutputStream(new File(dir,
> "derby.properties")), "derby.properties");
>             prop.setProperty("derby.locks.deadlockTrace", "true");
>             prop.setProperty("derby.stream.error.logSeverityLevel",
> Integer.toString(20000));
>             prop.setProperty("derby.language.logStatementText", "true");
>             prop.setProperty("derby.stream.error.file",
> dir.getAbsolutePath()+"derby.log");

No, you need to call store() after you have called setProperty().
Otherwise, you'll just create an empty properties file.

-- 
Knut Anders

Mime
View raw message