Java-Gaming.org    
Featured games (78)
games approved by the League of Dukes
Games in Showcase (426)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (466)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JWS Lazy downloads question  (Read 1330 times)
0 Members and 1 Guest are viewing this topic.
Offline erikd

JGO Ninja


Medals: 15
Projects: 4
Exp: 14 years


Maximumisness


« Posted 2005-07-01 11:42:15 »

In my emulator project, all my ROM files are in jars which are marked for lazy downloads. As I understand it, this will cause the ROM only to be downloaded when needed. Now I was wondering: How will JWS know which jar it has to download? Or will it just download all jars which are marked as 'lazy' until it finds the correct one?

Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #1 - Posted 2005-07-01 12:22:28 »

You assign the lazy jars to groups (can't remember the technical name off top of head - "parts" ?), so that JWS knows "part A is linked to parts B and C", for instance.

Not very helpful, I'm afraid, but don't have all my downloaded JWS refs here at work Sad. If you grab the big PDF functional specification for webstart, you'll find it's not so much a spec as a manual Smiley. So, go to the java site, find JWS, and get that "spec" (manual) - it's great, very readable (pity it's PDF only, instead of something intelligent like HTML).

malloc will be first against the wall when the revolution comes...
Offline erikd

JGO Ninja


Medals: 15
Projects: 4
Exp: 14 years


Maximumisness


« Reply #2 - Posted 2005-07-01 12:48:49 »

Yes, I read the spec already. The fact that it says that you can use the jnlp api to programmatically download a jar got me wondering what actually happens when you don't do that and just mark a jar as lazy because, as far as I can tell, there's no way that the jws client can know which resource resides in which jar...

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #3 - Posted 2005-07-01 14:51:02 »

Oops, misunderstood a bit there, sorry. Very tired this morning Sad

Yes, I read the spec already. The fact that it says that you can use the jnlp api to programmatically download a jar got me wondering what actually happens when you don't do that and just mark a jar as lazy because, as far as I can tell, there's no way that the jws client can know which resource resides in which jar...

I'm pretty sure you can, somehow - have you looked at the JAR-index features? (may not be described in JWS, in which case have a look at the JAR spec / the JAR-tool docs in the standard javadocs

malloc will be first against the wall when the revolution comes...
Offline erikd

JGO Ninja


Medals: 15
Projects: 4
Exp: 14 years


Maximumisness


« Reply #4 - Posted 2005-07-01 17:28:56 »

Doesn't a jar need to be downloaded first in order to see what's in it?

Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #5 - Posted 2005-07-01 18:18:19 »

Doesn't a jar need to be downloaded first in order to see what's in it?

Off the top of my head...jar-indexing creates an index alongside the manifest, and then your server keeps a copy of that index outside the JAR available for JWS clients to access.

However, I could be talking compelte rubbish here, conflating concepts from JWS with those from J2EE deployment of JAR's, so don't pay too much attention to me Tongue

malloc will be first against the wall when the revolution comes...
Offline Malohkan

Senior Member




while (true) System.out.println("WOO!!!!");


« Reply #6 - Posted 2005-07-03 04:46:54 »

erikd, as soon as you figure out what's actually going on, I'd also like to take advantage of this feature.  Let me know if you come across some solid info.

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
Offline erikd

JGO Ninja


Medals: 15
Projects: 4
Exp: 14 years


Maximumisness


« Reply #7 - Posted 2005-07-03 14:21:04 »

I checked what's happening now: What seems to be happening is that as soon as a resource is requested which resides in a .jar marked as 'lazy', it will simply download *all* .jar files marked as lazy. I guess I have to download them programmatically.

Offline Malohkan

Senior Member




while (true) System.out.println("WOO!!!!");


« Reply #8 - Posted 2005-07-04 00:54:34 »

Is there a way to find out if your lazy stuff is loaded without just asking for a resource inside it and thus forcing it to download immediately?

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (72 views)
2014-04-15 18:08:23

BurntPizza (68 views)
2014-04-15 03:46:01

UprightPath (79 views)
2014-04-14 17:39:50

UprightPath (65 views)
2014-04-14 17:35:47

Porlus (80 views)
2014-04-14 15:48:38

tom_mai78101 (104 views)
2014-04-10 04:04:31

BurntPizza (164 views)
2014-04-08 23:06:04

tom_mai78101 (260 views)
2014-04-05 13:34:39

trollwarrior1 (210 views)
2014-04-04 12:06:45

CJLetsGame (220 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!