Jetty: To embed or not to embed?

前端 未结 3 440
挽巷
挽巷 2021-01-30 13:00

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

3条回答
  •  执念已碎
    2021-01-30 13:43

    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.

提交回复
热议问题