2

I have a WAR deployed to Jetty 9.0.0.M3. I am trying to figure out what I need to set in my context in order to be able to have it reloaded every time I upload an updated war file (without having to restart Jetty).

I had a look at the docs, but I'm afraid I couldn't find what I was looking for. I only know how to do this with the embedded Jetty Maven plugin, but not with the standalone.

Any help would be appreciated! Thanks.

4

1 回答 1

1

关键在于部署程序。您需要连接部署管理器功能并让它管理 web 应用程序的启动。

http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/WebAppProvider.java

jetty xml 文件实际上是 java 的一层薄薄的皮肤,所以请看下面的 xml 文件,它是 jetty 用于我们发行版的传统 webapp 启动的文件。

http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/jetty-deploy/src/main/config/etc/jetty-deploy.xml

这应该可以让你解决问题。

于 2012-12-20T11:41:45.630 回答