Hi Paul.

The traditional problem with Resource Bundles is that they are loaded
through the class loader and the class loader _caches_ the result for ever.
This mean that it usually requires a web container restart to pick up a
change in the property files. (you can also do it as a class, but it is
rather cumbersome and seldom used)

I have not yet tried this myself, but it appears that there now is a
clearCache() method on the ResourceBundle to overcome this limitation,
making it much easier to trigger a reload from within your application.

Did you mention why you were looking for alternative ways to do this?

/Thorbjørn


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Paul Holm
Sent: 5. februar 2013 22:35
To: web400@xxxxxxxxxxxx
Subject: Re: [WEB400] Web Application Internalization Best Practices

Thorbjørn,

Thanks for the response. What specific changes in JDK 6 are you referring
to relative to resource bundles? Are you talking about The ability to store
the .PROPERTIES file on the classpath and override properties in the
web-inf/lib directory?

Thanks, Paul

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.