我有的:
- Tomcat 服务器,其中包含带有所有必需库的 jnlp 文件,并且可能由于某种原因被关闭
- 非常胖的摇摆应用程序,需要所有证券许可
JNLP 文件:
<jnlp spec="1.0+" codebase="http://somehost:6020/webstart/DS/xxx/" href="DS.jnlp"> <information> <title>DS WebStart</title> <vendor>DS</vendor> <homepage href="index.html"/> <offline-allowed/> <icon href="http://somehost:6020/DS_5.6.0.333/icon_32x32.gif"/> <icon kind="splash" href="http://somehost:6020/DS_5.6.0.333/Splash.jpg"/> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.6.0_12" max-heap-size="128m" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-XX:MaxHeapFreeRatio=25 -XX:MinHeapFreeRatio=20 -Xss2M"/> <jar href="http://somehost:6020/DS_5.6.0.333/sds.jar" download="eager"/> <jar href="http://somehost:6020/DS_5.6.0.333/sresources.jar" download="eager"/> <jar href="http://somehost:6020/DS_5.6.0.333/scommons-logging.jar" download="eager"/> <jar href="http://somehost:6020/DS_5.6.0.333/slog4j.jar" download="eager"/> <jar href="http://somehost:6020/DS_5.6.0.333/stclib.jar" download="eager"/> <jar href="http://somehost:6020/DS_5.6.0.333/sconcurrent.jar" download="eager"/> <jar href="http://somehost:6020/DS_5.6.0.333/scon.jar" download="eager"/> <jar href="http://somehost:6020/DS_5.6.0.333/sDSLauncher-1.0.jar" download="eager"/ <nativelib href="http://somehost:6020/DS_5.6.0.333/jdic-native.jar" download="eager" /> </resources> <application-desc main-class="com.ds.app.Main" /> </jnlp>
客户端操作系统:Windows XP 和 Windows 7。客户端机器上的 JNLP 文件总是通过快捷方式像这样启动:javaws.exe DS.jnlp
问题: 当tomcat关闭时,应用程序从缓存中启动,但是太慢了,无法使用它。想不通当tomcat宕机时javaws对应用有什么影响?请帮我解决这个问题
谢谢,安德烈
更新 1:在不同系统上玩耍和测试后,我注意到该应用程序在 Windows XP 上运行良好。看起来 javaws 正在尝试在启动应用程序时在后台检查所有那些已签名的 jar,而不仅仅是从现金中读取它。在 Windows XP 上,相同版本的 java 根本不这样做。它只是启动应用程序。
更新 2:Windows 7 连接超时似乎是 Windows XP 超时的 10 倍。基本上,如果我能以某种方式设置一些可以解决问题的一般连接超时。
更新 3:更改标签根本没有帮助。它仍然工作相同。