db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Embretsen <John.Embret...@Sun.COM>
Subject Re: Can the derby.log file be suppressed?
Date Wed, 24 Oct 2007 14:04:20 GMT
Kristian Waagan wrote:
> David Leader wrote:
>> Further to my message of yesterday,
>>
>> java -jar -Dderby.stream.error.field=MyApp.DEV_NULL  MyApp.jar
> 
> Hello David,
> 
> I haven't followed this thread, but will Derby honor this property if 
> you put it inside the derby.properties file?
> 
> That way, you might get away with changing you exe builder.
> On the other hand, if you don't know where to put the derby.properties 
> you're out of luck with this approach.

Maybe I've missed something, but why won't it work to set the property in the 
application (Java code), before loading the embedded driver?

// App startup....
System.setProperty("derby.stream.error.field", "MyApp.DEV_NULL");
// DB startup...


-- 
John


Mime
View raw message