Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resource file update problem

 
Kudret Serin
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.
 
Ben Souther
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