jetty: hot redeploy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<Configure id="Server" class="org.eclipse.jetty.server.Server">
    <Ref id="DeploymentManager">
      <Call name="addAppProvider">
        <Arg>
          <New class="org.eclipse.jetty.deploy.providers.ContextProvider">
            <!-- Directory to scan for context descriptors or war files -->
            <!-- <Set name="monitoredDirName"><Property name="jetty.home" default="." />/contexts</Set> -->
            <Set name="monitoredDirName"><Property name="jetty.home" default="." />/webapps</Set>
            <Set name="scanInterval">1</Set>
          </New>
        </Arg>
      </Call>
    </Ref>
</Configure>

Leave a Reply

Your email address will not be published. Required fields are marked *