Announcement Announcement Module
Collapse
No announcement yet.
setting messageSource 'basenames' property from other config file - is it possible? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • setting messageSource 'basenames' property from other config file - is it possible?

    Hi,

    Currently i use the ReloadableResourceBundleMessageSource implementation to retrive messages from locations stored in 'basenames' property:

    HTML Code:
    <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    		<property name="basenames">
    			<list>
    				<value>WEB-INF/classes/messages</value>
    				<value>classpath:mailmessages</value>
    				<value>classpath:exceptionmessages</value>
    				<value>classpath:com/amdocs/adam/common/config/lang/commonEng</value>
    			</list>
    		</property>
    		<property name="fileEncodings" value="UTF-8" />
    	    <property name="defaultEncoding" value="UTF-8" />
    	</bean>
    Is there a way to store the path in a seperate config file & to populate 'basenames' with it when server loads?

    Thanks.
Working...
X