Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reload properties from url

 
Karen Gomes
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks
Karen
 
Mehul Sanghvi
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I hope this helps:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic