开发者

JNLP with Custom Progress - loads applet classes before displaying progress

I have a JNLP that specifies a number of resource jars. One has the download="progress" to display a custom progress bar as other resource jars are loaded. The progress is found and displayed as expected, however it waits to display progress until after four of the other jars are loaded as well (these are 3MB). It then shows the progress f开发者_开发技巧or the rest of the resources (another 4MB) I expected the progress jar to load first and display before starting downloads of the main jar and any dependency jars. The jars that are loaded seem to contain the classes that are directly referenced by the "main" jar whereas the progress jar is only a few KB and has no dependencies/imports on any other jar in resources.

Is there a way to configure JNLP to download only the progress jar first and display it and then grab the rest of the resources?


By default all resources are downloaded eagerly;

So have you tried this: specify "lazy" on all your other .jars Then maybe the download="progress" one will get preference and be downloaded first. Also try putting the progress one first in the list.

Some examples here: http://download.oracle.com/javase/6/docs/technotes/guides/jweb/customizeRIALoadingExperience.html

There is also a property jnlp.concurrentDownloads which you could tweak and might have an effect. See http://download.oracle.com/javase/6/docs/technotes/guides/jweb/riaJnlpProps.html


It was feature newly implemented in 1.6.0_18:

http://jcp.org/aboutJava/communityprocess/maintenance/jsr056/jnlp-6.0.18.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜