aspose file tools*
The moose likes Websphere and the fly likes Replacing property file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Reply locked New topic
Author

Replacing property file

Inshar Anas
Greenhorn

Joined: Apr 02, 2009
Posts: 21
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

Joined: Oct 29, 2001
Posts: 8997
    
    9

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.


[How To Ask Questions On JavaRanch]
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31062
    
232

Please don't post the same question in multiple forums. I'll close this copy.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Replacing property file