如何通过 jnlp 提供具有许多 web 应用程序的码头? [英] How can I deliver jetty with many webapps via jnlp?

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

问题描述

我有一个网络应用程序(
(来源:sourceforge.net)

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

但我的问题是什么?

  1. 需要哪些码头罐?我想将这些上传到我的主页以供托管.
  2. 我应该使用哪个 jar 作为主 jar 来通过 jnlp 启动他?
  3. 我应该使用哪个主类通过 jnlp 启动 jetty?
  4. 我可以使用哪个参数来配置 jetty 来说明这是 webapp1 的战争,这是 webapp2 的战争......或者这是用于热部署的 weapps 目录......?

对我来说最重要的问题是 1.如果回答了这个问题,我就可以在本地运行 jetty(没有 maven 插件),并且通过手动也许我可以解决剩下的 2-4 个问题.

解决方案

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

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

然后安装应用程序

我从这篇文章中得到了这个想法: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) which uses 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 webapps.

I am looking for a way to deliver these 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. Which jars of jetty are needed? I would like these upload to my homepage for hosting.
  2. Which jar should I use for jetty as main jar to start him via jnlp?
  3. Which main class should I use to start jetty via jnlp?
  4. Which parameter could I 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 that I could run jetty local (without maven plugin) and via manual maybe I could solve the rest 2-4.

解决方案

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 提供具有许多 web 应用程序的码头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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