简体   繁体   English

Java Web Start-更新某些用户?

[英]Java Web Start - update SOME users?

Updates via JWS are too much pain and work for help desk, because on every release a few per cent users "get stuck" in the middle and are unable to launch the application without reinstall. 通过JWS进行的更新对于服务台来说太费力且费力,因为在每个版本中,百分之几的用户“卡在”中间,并且如果不重新安装就无法启动应用程序。 We're looking for a way to update only some users and then incrementally push the new version to more of them. 我们正在寻找一种仅更新一些用户,然后将新版本逐步推向更多用户的方法。

I don't see a way to do this directly with JNLP. 我看不到直接使用JNLP执行此操作的方法。 Ideas we have so far include: 到目前为止,我们的想法包括:

  • Place new jar(s) in the web directory. 将新的jar放在Web目录中。 Update JNLP launch file to these new jars. 将JNLP启动文件更新为这些新的jar。 After an hour, revert JNLP. 一个小时后,还原JNLP。 Question: Does JNLP specify what will happen to users who have already updated and now hit the "downgraded" launch file? 问题:JNLP是否指定将对已经更新并单击“降级”启动文件的用户进行处理? (Hard data please) (请提供硬数据)
  • Have 5 JNLP launch files and have help desk reinstall the application everywhere. 拥有5个JNLP启动文件,并具有服务台,可在各处重新安装该应用程序。 Then update one file at a time (ie 20% users at a time). 然后一次更新一个文件(即一次更新20%的用户)。
  • Implement a server-side solution, such as a CGI script on top of Apache, that will serve different revisions of the JNLP launch file to different users based on their IP. 实现服务器端解决方案,例如Apache之上的CGI脚本,该解决方案将根据其IP为不同用户提供JNLP启动文件的不同版本。

What downsides do you see in these options? 您在这些选择中看到什么不利之处? What else can we consider? 我们还能考虑什么?

I don't understand why some users get stuck. 我不明白为什么有些用户会卡住。 What do you mean by re-install? 重新安装是什么意思? I just have users launch from the web site. 我只是让用户从该网站启动。 Nothing gets installed. 什么都没有安装。 They can place the JNLP file on the desktop if they like, but the software is still not "installed" in the traditional sense. 他们可以根据需要将JNLP文件放在桌面上,但是按照传统意义,该软件仍未“安装”。

For my application, I have it check for updates in the background: 对于我的应用程序,我在后台检查更新:

This means that every time the program is launched, the client computer checks the locally stored version against the jar on my server. 这意味着每次启动该程序时,客户端计算机都会根据我服务器上的jar检查本地存储的版本。 Downloading the latest version happens behind the scenes and the next time the program is launched, the new version is used. 下载最新版本是在幕后进行的,下次启动该程序时,将使用新版本。 No one gets stuck. 没有人被卡住。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM