How can i deliver jetty with many webapps via jnlp?

与世无争的帅哥 提交于 2019-12-06 03:46:43

Why not deploy a normal Java app (with a main() etc.) that invokes Jetty programatically via its Server class? That class is configured via code with the appropriate contexts, servlet classes etc.

I've done that before with success. The only headache is running one Jetty with multiple apps being downloaded on request (if I read your question correctly). Can you use some classloading magic, and load classes/apps on demand from a remote URL ?

FunThomas424242

I have found another way today. This is interesting too. Here is the concept:

  1. Use java webstart to install an osgi container
  2. Use a bundle x or a osgi service to download all bundles of your app
  3. Use the jetty bundle to provide jetty support

Then the application is installed

I got the idea from this article: http://www.toedter.com/blog/?p=45

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