首页 文章

使用jetty服务器进行热部署

提问于
浏览
1

我在我的应用程序中使用独立的jetty服务器 . 我想为jar做一个热部署 . 当我浏览网络时,我在jetty.xml中找到了以下设置

<Call name="addLifeCycle">
  <Arg>
    <New class="org.mortbay.jetty.deployer.ContextDeployer">
      <Set name="contexts"><Ref id="Contexts"/></Set>
      <Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
      <Set name="scanInterval">1</Set>
    </New>
  </Arg>
</Call>

The ContextDeployer will scan the configurationDir directory at intervals of scanInterval seconds for xml descriptors that define contexts.

在我的情况下,我必须为jar进行热部署 . 使用上面的配置,我如何指定为jar文件进行热部署 . 指定它将查找上下文文件中的更改 . 那么要重新部署我们是否需要更改上下文文件?请帮助我理解 .

1 回答

相关问题