Resourcebundles from database
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vineet_bhatia
Posted On:   Monday, March 25, 2002 08:26 AM

Is there an way to retrieve resource bundles from the database table(s) instead of properties files?

Re: Resourcebundles from database

Posted By:   Tonio_Caputo  
Posted On:   Monday, March 25, 2002 12:50 PM

The first answer is "YES", you
must implement a class that
extends java.util.ResourceBundle
and obtains de data from de DB.

If you are expecting an existing
DBResourceBundle no there is not,
at list in standard java distribution.

I suppose trying to emulate all
the functionality of the existent
ListResourceBundle and PropertyResourceBundle
will be a little hard, but you can start
with a simple implementation.

Hope this help you.

Re: Resourcebundles from database

Posted By:   Bozidar_Dangubic  
Posted On:   Monday, March 25, 2002 09:41 AM

not really, but you can store information in the database, load data from the database and write them into the property files during the initialization of your application. that would be a workaround.
About | Sitemap | Contact