Announcement Announcement Module
Collapse
No announcement yet.
Overriding properties value at run time Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Overriding properties value at run time

    hi,

    I am using org.springframework.context.support.ReloadableReso urceBundleMessageSource to load my properties file as below
    Code:
      <bean id="commonValues" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
        <property name="cacheSeconds" value="1"/>
        <property name="basenames">
          <list>
            <value>WEB-INF/commonValues</value>
          </list>
        </property>
      </bean>
    and accessing it using ApplicationHolder.mainContext.getBean('commonValue s').getMessage(paramName,null,null,null)

    I need to override the value for a particular key.

    Is there any way to achieve this
Working...
X