• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL and resource bundles

 
harold neiper
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
harold neiper
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic