我如何通过jnlp交付许多webapp的码头? [英] How can i deliver jetty with many webapps via jnlp?

查看:109
本文介绍了我如何通过jnlp交付许多webapp的码头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web应用程序( sourceforge.net )

示例:Bundle1可以包含码头和部署的webapp1,而Bundle2可以包含码头和部署的webapp1和webapp2(与最终用户的需求有关,我想提供我的webapp的许多变体)

但是我的问题是什么? 1)是否需要装有跳船的塑料瓶?我希望将这些上传到我的主页进行托管. 2)我应该使用摇罐作为主罐来通过jnlp启动他吗? 3)我应该使用Wich主班通过jnlp启动码头吗? 4)Wich参数我可以用来配置码头,这是webapp1的战争,这是webapp2的战争....或者这是用于热部署的weapps目录...?

对我来说重要的问题是1)如果回答了这个问题,那么我可以在本地运行码头(没有maven插件),并且通过手册也许我可以解决其余的2-4.

感谢创意

托马斯

解决方案

我今天找到了另一种方法.这也很有趣.这是概念:

  1. 使用java webstart安装osgi容器
  2. 使用bundle x或osgi服务下载应用程序的所有捆绑包
  3. 使用码头捆绑包提供码头支撑

然后安装了应用程序

我从这篇文章中得到了这个主意: http://www.toedter.com/blog/?p = 45

i have a webapp (http://sourceforge.net/projects/sf-mvn-plugins/files/m2-repo/net/sf/maven/plugins/example-captaincasa-jnlp/0.1-SNAPSHOT/example-captaincasa-jnlp-0.1-SNAPSHOT.war/download) wich use jsf in a servlet container. This works fine with jetty-maven-plugin run-war target at my local pc. In the future i would like make more of this kind of weapps.

Now i am looking for a way to deliver this webapps with jetty via jnlp. The end user should be have a zero installation but the webapps needs servlet container and my hoster does not support a servlet container or application server or so on.

I don't like an embedded solution because in this case each webapp must be delivered with a separate jetty und run with a separate jetty -> too big size -> to many download size and so on.

The architecture should be similar to this:
(source: sourceforge.net)

Example: Bundle1 could contains jetty and deployed webapp1 and Bundle2 could contains jetty and deployed webapp1 and webapp2 (related to requirements of end user i would like deliver many variant of my webapps)

But what is my question? 1) Wich jars of jetty are needed? I would like these upload to my homepage for hosting. 2) Wich jar should i use for jetty as main jar to start him via jnlp? 3) Wich main class should i use to start jetty via jnlp? 4) Wich parameter i could use to configure jetty to say this is war of webapp1 and this is war of webapp2.... or this is directory of weapps for hot deployment...?

The important question for me is 1) If this is answered so i could run jetty local (without maven plugin) and via manual maybe i could solve the rest 2-4.

Thanks for ideas

Thomas

解决方案

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

这篇关于我如何通过jnlp交付许多webapp的码头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆