This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Web Services and the fly likes load log4j property file from url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "load log4j property file from url" Watch "load log4j property file from url" New topic
Author

load log4j property file from url

Rohit David
Greenhorn

Joined: Feb 18, 2008
Posts: 12
I have figured out how to load a property file from a url and use the PropertyResourceBundle to get the properties. However once loaded how do I make this property file visible to the application? Is there some log4j object I can call and provide it with reference to the property file accessed from url? Any help would be appreciated.

The reason for me to do this is because its getting very inconvenient to make changes to log4j prop file from a WAR file and it always involved re-deploying and restarting application. Instead having a prop file in a remote location, which can be accessed by the application using url makes things much easier to use and make changes. If there is another approach to doing what I would like to do without using url methodology then kindly state.

I am currently using tomcat 5.5 and eventually I would be deploying this app to Websphere.

Thanks
 
 
subject: load log4j property file from url