• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Refreshing the contents of a ResourceBundle w/o JVM restart?

Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Is it possible to add new properties to a resource bundle without restarting a jvm?

The exact case is: we have all the language specific strings in property files and as you know they are loaded after a jvm started. Our weblogic starts in about 3 minutes or something and there is no way to make the process of adding a new property to a resource bundle and seeing on the html page in the browser..

The current scheme is:

1. Add the property to a bundle.
2. Stop weblogic
3. Start weblogic

It takes about 5 or 6 minutes. It is very long for me. Is there a way to make it faster (maybe by loading bundles w/o jvm restart)?

Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Try this link : http://www.javaworld.com/javaworld/javatips/jw-javatip125.html

Also, there is another way you can reload the changes without restarting the server. I think you need to read the property file again, put the values in a HashMap and put it under the session. In the JSP you need to use the session object to populate the values in the properties file.
Hey, I'm supposed to be the guide! Wait up! No fair! You have the tiny ad!
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic