Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNLP (Packaged JARs) downloads multiple times

 
Ashok Jeevanandham
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We have a JNLP application which consists of multiple packaged jars. The application is accessed through an URL (where initially the jnlp gets downloaded which later fetches the jars from the tomcat application).

The application size is around 45 MB, and we didn't want to download this multiple times when we switch to a new server. Keeping this in mind, we thought of keeping the same DNS alias to both the servers where the jnlp application is deployed (and only one server will be active at a time).

Application is getting downloaded to the local machine through the first server (http://servername/JNLPapp - this is on 192.168.1.1). To test this we brought down 192.168.1.1 and brought up 192.168.1.2, same application deployed on 192.168.1.2 and alias servername assigned to this IP. So there is no change for the end users, they still access through (http://servername/JNLPapp).

Question here is, there is no change in the URL being accessed and the JNLP contents as well. But the local cache is getting cleared and the application is getting redownloaded again.

Can you help with this?

Thanks
Rocky
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Are your JAR files versioned? This FAQ says that if you're not using versioning, the file timestamp is used to identify the file; perhaps the timestamp reflects the deployment time and thus differs between your two servers (you might be able to verify this somehow).

I'm just guessing, though. I never used/created versioned JARs with JNLP myself.
 
Ashok Jeevanandham
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JARs are actually versioned. What are the parameters are compared by JNLP to download the actual jars (either full or incremental)? Are these parameters customizable?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic