This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 9137
    
    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: 32481
    
214

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
 
Have you checked out Aspose?
 
subject: Replacing property file
 
It's not a secret anymore!