commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gz.lyn <katc...@gmail.com>
Subject Re: Configuration Automatic Reloading
Date Thu, 27 Nov 2008 08:39:05 GMT
Hi Olver,

My code looks like:


> PropertiesConfiguration config = new
> PropertiesConfiguration("config.properties");
> config.setReloadingStrategy(new FileChangedReloadingStrategy());



> *config.properties*
>
> foo = bar
> include = distributors.properties
>


> *distributors.properties*
>
> dist.name = abc
> dist.name = def
>

It works fine If I move the the key-values from *distributors.properties* to
*config.properties*.


On Thu, Nov 27, 2008 at 3:02 PM, Oliver Heger
<oliver.heger@oliver-heger.de>wrote:

> gz.lyn schrieb:
>
> Hi,
>>
>> It seems changing the content of a included property file would not affect
>> Config file Automatic Reloading? Or did I missed some steps?
>>
>>
>> Thanks for answering,
>> Jimmy
>>
>> Can you provide a short code fragment demonstrating how you setup your
> configuration?
>
> Oliver
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>


-- 
Chrs,
-Jimmy lin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message