Win a copy of The Java Performance Companion this week in the Performance forum!
    Bookmark Topic Watch Topic
  • New Topic

Replacing property file

 
Inshar Anas
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi all,
i need to find a replacement for the *.property file.
because, if we update a property file, we need to restart the server. So, i need to find a method, where i can change the property values without restarting the server.
I am using java 1.4 and the server is web sphere.
need help from you all!
thanks!
 
Joe Ess
Bartender
Posts: 9300
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Inshar Anas wrote: . . .we need to restart the server.


If the property file is contained within an web application (assuming this, since you are running websphere), it should be reloaded when one redeploys a web application. No server restart necessary. I'll move this topic to the websphere forum to make sure.
I maintain a web app that was written before the age of hot-redeploy and it spawns a thread that watches a collection of resources for changes. When a change is detected it reloads the resource. I'm not sure if that is the current solution to avoid a redeploy to update resources.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34681
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question in multiple forums. I'll close this copy.
 
    Bookmark Topic Watch Topic
  • New Topic