wood burning stoves 2.0*
The moose likes JSP and the fly likes JSTL and resource bundles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL and resource bundles" Watch "JSTL and resource bundles" New topic
Author

JSTL and resource bundles

harold neiper
Greenhorn

Joined: Jun 12, 2002
Posts: 18
I am trying to determine the amount of time it takes for an update to a resource bundle to be recognized by an application, if it even does. In other words do I have to redeploy the application or will the file changes be reloaded at a specific interval? This is specifically for the use with the 'i18n ' features of JSTL.
Thx
Harold
Faisal Khan
Ranch Hand

Joined: Jun 29, 2003
Posts: 285
If you have made changes to the deployment descriptor, which I think you would have and added new tld files etc then you will need to restart the container for the new resources to get loaded. Depending on what you are using, you may be able to reload the webapp itself and not restart the whole container.
HTH


The secret to creativity is knowing how to hide your sources.
harold neiper
Greenhorn

Joined: Jun 12, 2002
Posts: 18
No changes to the deployment descriptor. Just updated one of the key=value pairs in a resource bundle used for i18n. Then uploaded the updated bundle to the server (in my case it is located in the /WEB-INF/classes/... direcotry structure).
R. Shellbay
Greenhorn

Joined: Sep 19, 2003
Posts: 13
My guess is that you need to restart your webserver each time. At least that's my experience. The reason, i think, is that when the resourcebundle is loaded, JVM "transforms" it into a java class, and hence it is not reloaded unless the classloader is reloaded => restart...
 
Don't get me started about those stupid light bulbs.
 
subject: JSTL and resource bundles