John McNally <[EMAIL PROTECTED]> writes:

> Off the top of my head, I would say you will need to write an
> implementation of ResourceBundle that will reload the properties file if
> its modified date is greater than the last loaded date.  Quite a bit of
> work.  Alternatively, if you have class reloading turned on (using
> tomcat), try forcing a compile of one of the java classes in your app. 
> It should trigger a reload of the properties file, but I am not 100%
> positive on that.

I'm also going to need an alternate ResourceBundle implementation.
The PropertyResourceBundle implementation in the JDK 1.3.1 from Sun
uses a Hashtable internally for storage.  For a web app, where the
common use case is many concurrent reads, use of synchronized storage
for property lookups is definitely not the best design decision.

Does anyone know how to "register" a ResourceBundle extension so that
it would be used instead of PropertyResourceBundle when
ResourceBundle.getBundle() is called?  (I admit I looked around for a
way to do this only briefly.)  I'd like to write such an extension and
include it with the LocalizationService--it will yield much higher
read performance in a web application.

                                Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to