Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to cache, once, the jar for an applet, with the same version but coming from different servers.

 
Dimitris Az
Greenhorn
Posts: 1
Hibernate Java ME Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey all,
i have a question concerning java applets and caching , java plug-in side . If anyone can help it would be greatly appreciated

The scenario i am trying to model is the following: I have a network of ,say hunderds, of elements and each such element has an http server installed serving an applet (html, jnlp, jar). Each server has its own 'version' of the applet and of course there exist elements with the same version.

I need the jar to be cached based NOT on the element it is coming from but on the jar version. (assume version is in the manifest and being read properly)

is this possible ??

eg.

https://192.168.0.1/blah.jar (jar version 1.0)
https://192.168.0.2/blah.jar (jar version 1.0)
https://192.168.0.3/blah.jar (jar version 1.1)

i need the java plug-in to cache blah.jar TWICE and not all three jars and ,clearly, i want the applet to run from elements 0.1 and 0.2 using that same cached jar.

As i understand it i want to have caching independent of the server URL but based solely on the jar version or name and size or something similar.

This is so that the first time the applet is run from element .0.2 (assume .0.1 already successfully installed/cached) one dows NOT want to have to wait for the jar to download again!

Thank you all,
D.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic