Announcement Announcement Module
Collapse
No announcement yet.
Can't set 'basenames' property in messageSource bean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can't set 'basenames' property in messageSource bean

    Hi,

    I want to dynamically set the basenames property with path read from other config file in my application.

    When i try to set it i get an error saying "The method setBasenames(String[]) is undefined for the type MessageSource"

    My configuration is:

    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 access the implementing class methods?

    Thanks.
Working...
X