Results 1 to 3 of 3

Thread: ReloadableResourceBundleMessageSource not able to read proeprties file from hardcoded

  1. #1
    Join Date
    Mar 2011
    Posts
    5

    Default ReloadableResourceBundleMessageSource not able to read proeprties file from hardcoded

    Hi,
    We are using RAD 7.5 for development purpose on windows environment and we are usign spring 3.x.
    I want to keep the properties file outside the WAR file so that I can change the values at run time without server restart.

    For doing a small POC I did the following.
    1) Created test.properties file in c:/temp folder.
    2) hardcoded the path as shown below.

    But issue is that spring is not able to read the properties file.

    Can anyone let me know what actually the issue is.?


    <bean id="globalSettings" class="org.springframework.context.support.Reloada bleResourceBundleMessageSource">
    <property name="basenames">
    <list>
    <value>file://c:/temp/test</value>
    </list>
    </property>
    <property name="cacheSeconds" value="1" />

  2. #2
    Join Date
    Mar 2011
    Posts
    5

    Default ReloadableResourceBundleMessageSource not able to read proeprties file from hardcoded

    I have closed the bean tag..
    </bean>

  3. #3
    Join Date
    Mar 2011
    Posts
    5

    Default ReloadableResourceBundleMessageSource not able to read proeprties file from hardcoded

    Can anybody help in this.. i am completely stuck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •