I have a springconfig.xml file and i used to get the bean property values from my.properties file. property file values are changed dynamically. but it will not set to the spring bean property. it will change only after i restart my tomcat. Here is my part of xml code.
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>file:/SATHISH/apache.8.0.24/bin/my.properties</value>
</property>
</bean>
<bean id="jmsEmailTemplateBean" class="org.springframework.jms.core.JmsTemplate">
<property name="connectionFactory" ref="authenticationConnectionFactory" />
<property name="defaultDestination" ref="${queuename}" />
</bean>
if i change the my.properties value to "foo" it will work. again i change "foo" to "boo" at runtime it will not work. It will not assign to ${queuename}.
manually i changed my.properties value at runtime. it will not affect springconfig.xml
It is possible to change xml values at runtime? Thanks in advance