Meaningless Drivel is fun!
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

Replacing property file

Inshar Anas

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!
Joe Ess

Joined: Oct 29, 2001
Posts: 9150

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

Joined: May 26, 2003
Posts: 32625

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

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Replacing property file
jQuery in Action, 3rd edition