wood burning stoves 2.0*
The moose likes Performance and the fly likes Avoiding server restart after changes in property file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Avoiding server restart after changes in property file" Watch "Avoiding server restart after changes in property file" New topic
Author

Avoiding server restart after changes in property file

Sumeet Chakraborty
Ranch Hand

Joined: Feb 05, 2009
Posts: 45
Hi All

I have a web based application which has few of its properties declared in a property file. I am using Weblogic to deploy this application. As expected, in case of any changes in the property files, we have to restart the weblogic server for the changes to take effect.

However, now there is a requirement where I am supposed to avoid the server restart incase of a change in any of the property files. I wonder whether it is possible at all, as I am not able to find any solution to it.

Kindly let me know is it at all possible. If yes, then how ?

Awaiting an early reply.

Thanks
Sumeet
Karthik Shiraly
Ranch Hand

Joined: Apr 04, 2009
Posts: 491
    
    5
Use Apache Commons Configuration framework - it provides automatic reloading of property files.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Avoiding server restart after changes in property file
 
Similar Threads
deploying struts application in weblogic server - interview question
refresh of class files in sun application server
Runtime changes to log4j.properties
debugging web application on weblogic from eclipse
Please tell me solution for this