在Jetty独立版中自动重新加载WAR [英] Auto-reloading WAR in Jetty standalone

查看:90
本文介绍了在Jetty独立版中自动重新加载WAR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个部署到Jetty 9.0.0.M3的WAR.我试图弄清楚我需要在上下文中设置的内容,以便每次上载更新的war文件时都可以重新加载该文件(而不必重新启动Jetty).

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).

我看了看文档,但恐怕找不到我想要的东西.我只知道如何使用嵌入式Jetty Maven插件来做到这一点,而不能使用独立的插件.

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.

推荐答案

密钥在部署程序中.您需要连接Deployment Manager功能并让其管理Web应用程序的启动.

The key is in the deployer. You need to wire up the deployment manager functionality and have it manage the starting of the webapp.

jetty xml文件实际上是Java上的一个皮肤,因此请看下面的xml文件,这是jetty在我们发行版的传统webapp启动中使用的文件.

The jetty xml files are effectively a thin skin over java so look the following xml file which is what jetty uses for the traditional webapp startup of our distribution.

这应该可以使您固定下来.

This ought to get you fixed up.

这篇关于在Jetty独立版中自动重新加载WAR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆