Announcement Announcement Module
Collapse
No announcement yet.
Can i use XML file instead of resource bundel? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can i use XML file instead of resource bundel?

    Hi,

    Currently i use the below bean to handle retrieval of messages from a resource bundel (property file):

    HTML Code:
            <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    		<property name="basenames">
    			<list>
    				<value>WEB-INF/classes/mailmessages</value>
    				<value>WEB-INF/classes/messages</value>
    				<value>WEB-INF/classes/exceptionmessages</value>
    			</list>
    		</property>
    		<property name="fileEncodings" value="UTF-8" />
    	        <property name="defaultEncoding" value="UTF-8" />
    	</bean>
    Can you suggest other Spring implementation which uses XML file instead?

    Thanks.

  • #2
    Currently there is none. So if you want one based on xml then implement your own. There is no standard way to specify one for xml, because what you think is workable/suitable isn't suitable for someone else (the same goes for a database backed one).

    With ResourceBundles the way they work and behave is clearly documented.

    Comment


    • #3
      Thanks Marten.

      Comment

      Working...
      X