Dependency checking
From Resin 3.0
(Redirected from Dependency Checking)
Resin restarts web-apps and virtual hosts when it detects a change in the <web-app> or <host>. The restart behavior is controlled by the <redeploy-mode> tag which defaults to "automatic".
Checked Resources
Resin checks the following resources to see if the web-app or host should be restarted:
- Any classes in WEB-INF/classes
- Any jars in WEB-INF/lib
- Any additional classes or jars specified in a <class-loader> tag
- Any WEB-INF/resin-web.xml
- Any WEB-INF/web.xml
- resin.conf
- Any other configuration file read by a <resin:import>
- A source .war file configured by <archive-path> or a <web-app-deploy> or <host-deploy>.
- Any file added in a <dependency> tag
<dependency-check-interval>
The <dependency-check-interval> directive configures how often Resin should check <web-app> or <host> dependencies for restarting. The restarting behavior is controlled by the <redeploy-mode> directive.
<dependency-check-interval> uses Period Configuration values.
During development, a <dependency-check-interval> of "2s" is appropriate. For deployment, a much large value like "1h" or "1d" is appropriate.