aspose file tools*
The moose likes Applets and the fly likes How to cache, once, the jar for an applet, with the same version but coming from different servers. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "How to cache, once, the jar for an applet, with the same version but coming from different servers." Watch "How to cache, once, the jar for an applet, with the same version but coming from different servers." New topic
Author

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

Dimitris Az
Greenhorn

Joined: Sep 24, 2012
Posts: 1

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to cache, once, the jar for an applet, with the same version but coming from different servers.