Jetty How to re-deploy war

断了今生、忘了曾经 提交于 2019-12-10 22:37:50

问题


Now I have read Jetty docs http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty#Setting_a_Web_Application_Context .

But there are no info about how to make code with hot re-deploy of the war file with scanInterval.

It must re-deploy war file if it changed.

How to code this?


回答1:


For hot deploy you need to deploy the webapp with the deployment manager and the webapp or context provider.

http://wiki.eclipse.org/Jetty/Feature/Hot_Deployment

the xml shown there (and in the distribution in the jetty-deploy.xml and jetty-webapps.xml) can be converted to java simply



来源:https://stackoverflow.com/questions/12092786/jetty-how-to-re-deploy-war

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!