开发者

How to detect if INDEX.LIST is used by Web Start?

I'm trying to use the jar indexing cabality of Java to reduce the amount of loaded archives during a web start launch. I've generated the INDEX.LIST with Ant and placed it in the jar file flagged as main (META-INF/INDEX.LIST). My startup class is a开发者_C百科lso in this jar. The main jar is downloaded eagerly, others are fetched lazily on demand.

Only my small main jar gets downloaded until i don't reach out for a resource which can be located in an another archive. If i try to load a property file from an other jar, the web start client downloads a lot of other archives before it finds my resource. (more than 10 Megs instead of ~500KB which was needed). Looks like it's not using the index file at all, just going linearly through the list of jars and tries to find the resource. I've checked the generated INDEX.LIST and it contains the reference to my property file.

How can i detect if Web Start is using my index file at all?


The part and package are obsolete in Java 6 JNLP specification, in favor of jar indexing and lazy fetching of any jar marked download='lazy'.
So either dump Java Web Start for something like GetDown, or index those puppies to avoid the network hit from Java 6's new JNLPClassLoader.
A major regression from Java <6 in my opinion, but it is what it is. I could never get jarindex to work either.


You probably want to use the package element in your JNLP file to list which packages each jar contains. Jar indexes are odd.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜