DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34289>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34289 ------- Additional Comments From [EMAIL PROTECTED] 2005-04-04 17:32 ------- Setting the strategy on the configuration instead of setting the configuration on the strategy solves Sample #2, but does not solve Sample #1 (properties file location is determined by searching the classpath). =========================================================================== PropertiesConfiguration propConfig = new PropertiesConfiguration ("commons.properties"); FileChangedReloadingStrategy strategy = new FileChangedReloadingStrategy(); strategy.setConfiguration(propConfig); strategy.setRefreshDelay(500); strategy.init(); propConfig.setReloadingStrategy(strategy); for (;;){ String prop1 = propConfig.getString("prop1"); System.out.println(Calendar.getInstance().getTime() + " : " + strategy.reloadingRequired() + " : " + prop1); Thread.sleep(1000); } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
