I cant seem to find a way to undeploy or turn off an application whilst JETTY is running. Is the only way to kill JETTY and all other apps running?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can do that in a few ways.
If you have the deploy
module enabled, just move the {appname}.war
(or {appname}.xml
) out of your ${jetty.base}/webapps/
directory, that will undeploy that webapp.
Another choice is to have JMX enabled and just .stop()
the webapp in question.