This discussion is archived
1 Reply Latest reply: Mar 7, 2013 2:12 AM by gimbal2 RSS

Best way to handle .properties and .xml files

800839 Newbie
Currently Being Moderated
Hi,

I have an application which contains so many properties and XML files, these are a part of WAR file which we deployed in
tomcat server. Whenever we make changes to these properties and XML files we redeploy the app and start the server.
Is there any way we can make sure that these files can take changes without redeploying or starting the server?
Please clarify.

Thanks.
  • 1. Re: Best way to handle .properties and .xml files
    gimbal2 Guru
    Currently Being Moderated
    Sure - keep them outside of the war. Pick any directory where you can put them (a directory where the server is allowed to read of of course), load them from that directory in your application. Make sure you can reach that directory through (S)FTP to easily be able to modify them. Then all you need is a way to reload them in the application, should the information be cached.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points