码头:要嵌入还是不嵌入? [英] Jetty: To embed or not to embed?
问题描述
嵌入码头与
What are the benefits of embedding jetty vs deploying your webapp(s) in jetty? If you are planning on deploying more than one web app, should you strictly stick with deploying a war file for each web app (as opposed to writing an embedded server which calls each web app)?
推荐答案
我的目标是创建一个独立的应用程序,其中码头只是其中的一个组件(例如,在osgi容器中),因此我将使用jetty嵌入式.如果您只是想部署战争,那么默认码头安装似乎更可取. 我不认为选择取决于您是否计划部署多个webapp.当您嵌入码头时,您必须自己检查代码.
i'd use jetty embedded when the goal is to create a standalone application in which jetty is just one of the components (for example in an osgi container). if you just want to deploy some war's then a default jetty installation seems more preferable. i don't think the choice depends on whether you plan to deploy more than one webapp. when you embed jetty you'll have to do the plumping yourselves in your code.
这篇关于码头:要嵌入还是不嵌入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!