0 Replies Latest reply on Jun 26, 2012 1:37 PM by Petrus Russello

    Customs resources bundles (java.utils.ResourceBundle)

    Petrus Russello Newbie

      Hi!

       

      I'm working with Seam 2.2.2.Final and JBoss AS 5.1.0.

       

      I have already learned about the use of  resource-bundles with the .properties files to implement the i18n for my web-application.

      In my opinion this approach is useful when the data associated with the resource-bundles don't change freequently, but this is not my case beacause I need also to modify them with an admin panel.

       

      So, my problem is that I don't know how to make i18n data editable at runtime avoiding to restart the server.

       

      At the moment, I've 2 solutions in my mind:

       

      1) use .properties files and edit them at runtime through the apache-commons-configuration library, but the server denies the access to these resources that are located in the .WAR archive;

       

      2) use the Database to store the data (i need more than 1 table, so the example of Pete doesn't work for me http://in.relation.to/Bloggers/StoringYourMessagesInADatabase) and load data with customized resources bundles (java.utils.ResourceBundle), in this case the problem is that faces-config.xml doesn't support the <resource-bundle> tag.

       

       

      Can someone help me to solve this problem and show me the right way?

       

      Thanks in advance