In my web-app (maven, spring) I have the following project structure:
MyWebApp
--src
--main
--java
...
--resources
--spring
spring_stuff.xml
...
mywebapp.properties
mylogs.xml
--webapp
--spring
--appServlet
servlet-context.xml
...
pom.xml
One I deploy the WAR
file to a Tomcat server using the Manager App
, the war gets unpacked and the files above are available in the webapp
folder. However, if I am not allowed to modify the files since they are 'in-use' by the web server. What can I do differently to be able to modify the property files while Tomcat is running and without having to restart it?
Is there a way (maybe in maven/spring) to set up a project so that different properties are enabled/disabled depending on where the WAR gets deployed?