Sharma, Rohit wrote:
I am trying to use the Configuration Factory to load my properties.
I need to designate a few property files within the configuration as
reloadable.
But, when I try to use the following form of Configuration, the files
are not marked Reloadable.
I find the reloading strategy for the files to be marked as
InvariantReloadingStrategy.
Sample Config file
<-
<file:///C:\Documents%20and%20Settings\ROHSHARMlocal\Local%20Settings\Te
mporary%20Internet%20Files\OLK4\commons_mc.xml##> <configuration>
< <system />
-
<file:///C:\Documents%20and%20Settings\ROHSHARMlocal\Local%20Settings\Te
mporary%20Internet%20Files\OLK4\commons_mc.xml##> <!--
property file list
-->
< properties fileName="test1_reloadable.properties"
reloadable="true"/>
</configuration>
Any suggestions?
____________________________________________
Rohit Sharma / Capgemini / Dallas
Consultant
Mobile: +1 213-291-4417 / www.capgemini.com
Join the Collaborative Business Experience
____________________________________________
ConfigurationFactory does not support specifying reloading strategies.
You have to use DefaultConfigurationBuilder instead. Details can be
found in the user guide [1]. There is also an example of defining a
reloading strategy.
Oliver
[1]
http://jakarta.apache.org/commons/configuration/howto_configurationbuilder.html#Using_DefaultConfigurationBuilder
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]