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: