This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Resource file update problem  RSS feed

 
Ranch Hand
Posts: 167
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I use a commercial framework for development which runs under JBoss.
We use resource files for static texts (for different languages)
When we change a value in resource file, or add a new key, we do not see the changes in application although we refresh the page.
We are able to see the changes only after we restart the framework application.
I think the application reads the resource file and caches it (in someway).
Is there any way to apply changes in resource files without restarting server? Something like " read keys & values from resource file again" while application runs?
What can you suggest?
Thanks in advance for any help.
 
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would depend on when your framework or container is reading the files and how they're being stored. Typically properties files are read at startup and kept in memory.

You'll need to figure out whether your framework, your container, or your app is responsible for this and then, if necessary, read the documentation to find out if a method has been made available to refresh them. If it is done by your app, you can write your own refresh method.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!