I would like to expand the set of reloadable directories on tomcat 7.0.59. When the reload attribute in Context set to true, tomcat controls the classes in: /WEB-INF/classes/ and /WEB-INF/lib .
Set to true if you want Catalina to control classes in / WEB -INF / classes / and / WEB-INF / lib for changes and automatically reload the web application if a change is detected. This feature is very useful when developing applications, but it requires a significant amount of time for execution and is not recommended for deployed production applications. This is why the default value for this attribute is false. You can use the Manager web application, however, to cause the deployed applications to restart on demand.
The whole system is divided into modules, each module can have its own web context ( /WEB-INF/classes/ ) and / or expand the global context ( /classes/ ). Let's say that I would like to have a reloadable directory /classes/ . How can i achieve this?
I tried using the WatchedResource tag without effect:
<Context reloadable="true" path="/test" docBase="/MY_MODULE/web/webroot"> <Manager pathname="" /> <WatchedResource>/MY_MODULE/classes</WatchedResource> </Context>
java tomcat tomcat7 catalina
luke
source share