Is it possible to get a Java fmt message package from a database?

I was unable to localize the application, and now the files are downloaded from text files. Is it possible to change the source to the database?

Here's how localized messages load:

<!-- Application Message Bundle -->
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
    <property name="basename" value="/WEB-INF/messages/messages" />
    <property name="cacheSeconds" value="0" />
</bean>
+5
source share
2 answers

You can implement your own by expanding AbstractMessageSource

0
source

Apparently, this was asked in Spring some time ago, but there weren’t enough people who wanted it. I think so.

https://jira.springsource.org/browse/SPR-364 is a JIRA, and there is a JAVA attachment that is a good starting point (you need to install the SQL statement though)

http://forum.springsource.org/showthread.php?t=18194

http://forum.springsource.org/showthread.php?t=14610

0

All Articles