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 ファイルのホット デプロイを指定する方法を教えてください。コンテキスト ファイルの変更を探すように指定されています。再デプロイするには、コンテキスト ファイルを変更する必要がありますか? 理解を助けてください。

4

1 に答える 1