db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kim Haase <Camilla.Ha...@Sun.COM>
Subject Re: [jira] Commented: (DERBY-2182) Documentation for derby.system.bootAll is missing
Date Tue, 11 Dec 2007 20:23:16 GMT
Thanks, Myrna. I managed to set it on the command line and got it 
working -- enough to test the autoboot feature from a directory other 
than the one where the databases were located. It works in both Network 
Server and embedded mode.

I think I have enough information for a writeup now and should be 
posting another patch at some point. As you suggested, I won't mention 
the derby.service property setting, since we don't want to expose that 
and it isn't required in order to use the properties.


Myrna van Lunteren wrote:
> On 12/11/07, Kim Haase (JIRA) <jira@apache.org> wrote:
>>    [ https://issues.apache.org/jira/browse/DERBY-2182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550674
>> Kim Haase commented on DERBY-2182:
>> ----------------------------------
>> Oops, I just read the Tuning Guide topic that says "Any property except derby.system.home
can be set by including it in the derby.properties file." (http://db.apache.org/derby/docs/dev/tuning/ctunproper51399.html)
>> Hm, so do I set it on the java command line? or where?
> Yes, on the java command line.
>> The documentation on the property itself (http://db.apache.org/derby/docs/dev/tuning/rtunproper32066.html)
does say that the default value is the current directory. So I shouldn't have to set it explicitly
-- but the documentation says I ought to (without saying why -- or how):
> You may always set derby.system.home explicitly - but it will be
> pointless in a derby.properties file, that's like putting the horse
> behind the cart.
> First comes the location of derby.system.home - this is "current" dir
> (where "current" means, dir indicated by java system property
> user.dir)   unless you're passing in -Dderby.system.home=<whatever> to
> change it from the default. Whatever is derby.system.home, derby will
> look for a derby.properties file in that directory (although derby
> will start with default settings if no derby.properties file is
> present in the current - or other directory if derby.system.home was
> specified).
>> Default
>> Current directory (the value of the JVM system property user.dir).
>> If you do not explicitly set the derby.system.home property when starting Derby,
the default is the directory in which Derby was started.
>> Note: You should always explicitly set the value of derby.system.home.
> Myrna

View raw message