File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes reload properties from url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "reload properties from url" Watch "reload properties from url" New topic

reload properties from url

Karen Gomes
Ranch Hand

Joined: Aug 25, 2003
Posts: 60
Hello Friends,

My current application uses a properties file that works fine. However at runtime, in case there is an error, like it could not find the queue defined in the properties file then I need my app to go to a url and get properties from there, rewrite the old properties file and reload.

I'm able to read the data from the url but not sure how to rewrite the properties file. I'm using this code to read the contents from the url:

Any help will be appreciated.

Mehul Sanghvi
Ranch Hand

Joined: Feb 04, 2002
Posts: 134

I hope this helps:

I agree. Here's the link:
subject: reload properties from url
It's not a secret anymore!