tag:blogger.com,1999:blog-5430164083972077839.post5075182564236248504..comments2023-09-09T09:49:10.735-06:00Comments on jeromatron - dev lux: Internationalization - dynamic and in a databasejeremyhttp://www.blogger.com/profile/03922781110155059528noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5430164083972077839.post-64690655914967094032009-09-25T18:26:30.005-06:002009-09-25T18:26:30.005-06:00@Gary - good point. I wonder if it would be bette...@Gary - good point. I wonder if it would be better to start with a clean slate rather than using the ListResourceBundle and just attaching the data to it. I'll have to take a look at that more.<br /><br />Some other resources:<br /><br />- <a href="http://blogs.sun.com/norbert/entry/more_control_over_resourcebundle" rel="nofollow">A blog post on sun.com about using ResourceBundle.Control</a><br /><br />- <a href="http://articles.techrepublic.com.com/5100-10878_11-1045670.html" rel="nofollow">An article about having more flexible resource bundles, including a db backed resource bundle</a><br /><br />- <a href="http://forums.sun.com/thread.jspa?threadID=360447" rel="nofollow">A forum thread about different approaches to the problem</a>jeremyhttps://www.blogger.com/profile/03922781110155059528noreply@blogger.comtag:blogger.com,1999:blog-5430164083972077839.post-47086384458919910122009-09-25T15:05:49.341-06:002009-09-25T15:05:49.341-06:00If you use a plain ListResourceBundle, you don'...If you use a plain ListResourceBundle, you don't gain the opportunity change the contents after it is created. It could work if you reload the bundles periodically.<br /><br />Another approach would be to subclass ResourceBundle as JDBCResourceBundle (or whatever... you get the idea).<br /><br />Underneath you could implement whatever kind of caching/expiry suits your needs to satisfy the requirement to be able to have updated translations without a server restart.Gary Dusbabekhttps://www.blogger.com/profile/02822527825865902304noreply@blogger.com