Discussions
Categories
- 196.9K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.4K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 546 SQLcl
- 4K SQL Developer Data Modeler
- 187.1K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.6K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 443 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
Applet and lazy download nightmare

827523
Member Posts: 2
Hi, I wonder if lazy download are supported when using webstart in applet mode.
I am using jv 1.6.0_23 and here is a extract of my jnlp file :
And i have 200 jars to download, but only ~100 needed at startup
I want to use lazy dowwload in order to speed up applet start : all jars are signed and most of the startup time is spend before my applet class is loaded (11 seconds before class is loaded, 14 seconds for full start : only 3 seconds spent in java code I can handle/fix)
I have not found "true" informations about lazy download in applet contexts. Somes posts speak about Class-path attribute, or META-INF/INDEX.LIST (jar i xxx.jar).. but I try many and nothing seems to works.
I also try using an extension with all my lazy jars but it doesnt' works..
Applet is launched by using http://www.java.com/js/deployJava.js script and "deployJava.runApplet(attributes, paramets..)" method inside and html page
So I'm a bit pointless ... Do you have any successfully expereince with lazy download mode and applets?
Edited by: user13576185 on 13 janv. 2011 06:36
I am using jv 1.6.0_23 and here is a extract of my jnlp file :
<jnlp spec="1.0+" codebase="/xxx" context="/ivtracer" href="/xxx/applet.jnlp" > ... <applet-desc name="Applet" main-class="xxxxApplet" width="800" height="800"> </applet-desc> <resources> <jar version="1293701656000" href="aaaa.jar" size="341823" download="eager"/> ...many more eager jars <jar version="1293701682000" href="yyyy.jar" size="225992" download="lazy"/> ...many more lazy jarsbut when starting applet, all jars get downloaded before my applet is started...
And i have 200 jars to download, but only ~100 needed at startup
I want to use lazy dowwload in order to speed up applet start : all jars are signed and most of the startup time is spend before my applet class is loaded (11 seconds before class is loaded, 14 seconds for full start : only 3 seconds spent in java code I can handle/fix)
I have not found "true" informations about lazy download in applet contexts. Somes posts speak about Class-path attribute, or META-INF/INDEX.LIST (jar i xxx.jar).. but I try many and nothing seems to works.
I also try using an extension with all my lazy jars but it doesnt' works..
Applet is launched by using http://www.java.com/js/deployJava.js script and "deployJava.runApplet(attributes, paramets..)" method inside and html page
So I'm a bit pointless ... Do you have any successfully expereince with lazy download mode and applets?
Edited by: user13576185 on 13 janv. 2011 06:36
Tagged:
Answers
-
user13576185 wrote:Is your applet embedded or free floating? If embedded, make it free floating and try again - just to rule out weird applet/browser interactions. Alternatively, add a main() to the applet to turn it into a hybrid application/applet and do some experiments using that.
Hi, I wonder if lazy download are supported when using webstart in applet mode. ..
Also note that embedded applets should have the codebase attribute left out (note not an empty value - left out).
As a general point about lazy loading, many things in the code might invoke the 'lazy' Jars to be downloaded eagerly.
Lastly, please use the code tags (as described on the 'sticky post' at the top of the forum thread listing when posting code or code snippets, XML/HTML/JNLP or input/output. Your original post can still be edited to add them.
This discussion has been closed.