• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

lazy instantiation

 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I read that jws could override the "lazy" marking and still download the jars if it chooses so.
Does anyone know how to prevent that?

My application has strong time constraints for the startup. I could use a minimal set of jars for the startup and comply with the requirements. But JWS ignores "lazy" download indication and decides to download some more jars.
That slows down the application which starts too late.

Any ideas how to force jws for "lazy" download (not to download what is not needed)?

Thanks,
Cristian

PS: DownloadService might sound nice but it will be a headacke to use it. (Resources are written actually by users, and so on, it gets messy....)
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I know of the 'lazy' option that you mention, but it is probably not very decisive in it's behaviour. It probably is just used to 'order' the download, not delay downloading.

I would suspect that if the network connection is good enough, then it will just get everything straight away without delay.

My interpretation was that if lazy is used, then the application can start without those jars, however it does not mean that the downloading of those jars should be delayed.

No answer, but just my opinion.

Cheers, Jared.
 
Hang a left on main. Then read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic