Hi!
I have the following bit of code:
propConfig = new PropertiesConfiguration( configFilename );
FileChangedReloadingStrategy reloadingStrategy = new
FileChangedReloadingStrategy() {
//FIXME - never called!? why?
public void reloadingPerformed()
{
LOG.warn( "Reloading configuration" );
super.reloadingPerformed();
try {
afterPropertiesSet();
}
catch ( Exception e ) {
LOG.error( e );
throw new NestableRuntimeException( e.getMessage(),
e );
}
}
};
reloadingStrategy.setRefreshDelay( refreshDelay );
propConfig.setReloadingStrategy( reloadingStrategy );
But for some reason reloadingPerformed is never called if I change the
file).
I'm calling getProperty("dummy") in each iteration (rest of code) - so
polling should happen.
What am I doing wrong?
--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]