commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Savara <pavel.sav...@intrade.com>
Subject [CONFIGURATION] FileChangedReloadingStrategy inside combined configuration
Date Wed, 15 Oct 2008 11:15:13 GMT
Hi, 
I have properties configuration file with FileChangedReloadingStrategy
inside combined configuration. It doesn't seem to reload automaticaly
when file changes. I have to go and call reload() on that configuration
in code (((PropertiesConfiguration) conf).reload();) after that change
is propagated fine. But as i said it not happening automatically just by
reading properties from that file.

Thanks for help
Pavel

Combined configuration file:
<configuration> 
  <override>
    <!-- Load the system properties -->
    <system/>
    
    <!-- Load gsxweb properties-->
    <properties fileName="gsxweb.properties"
throwExceptionOnMissing="false"
      config-name="gsxweb" config-optional="false" listDelimiter="|">
      <reloadingStrategy refreshDelay="1"
config-class="org.apache.commons.configuration.reloading.FileChangedReloadingStrategy"/>
    </properties>
    
  </override> 
</configuration>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message