commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinivas Jonnalagadda <>
Subject get the properties object loaded after the delayed refresh
Date Sat, 03 Sep 2011 05:48:06 GMT

Below is the code for i wrote and seems at the propsConfig object gets refreshd after the
delay but the result object has the old values still. How do i get the new values into the
result object after the refresh. I am trying to create a Configuration listener as well and
that alos seems not to work.  The main objective for me is to get the properties object loaded
with new values without JBOSS server restart. Any help is appreciated.

Srinivas J

Properties result = null;
Configuration config = null;
URL resourceURL = null;
FileChangedReloadingStrategy refreshStrategy = new FileChangedReloadingStrategy();

PropertiesConfiguration propsConfig = new PropertiesConfiguration(); 
result = ConfigurationConverter.getProperties(propsConfig);
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message