How does java web start cache parameters?

Posted on 2007-10-15
Last Modified: 2013-12-29
I am running a java web start app, and I am passing a parameter to the app from my jnlp file. My jnlp file is generated by php so my code looks something like this:
$gProductID = intval($_COOKIE["productRef"]);
<jnlp ... >
<application-desc main-class="reading.RGReading">
This works just fine the first time I run it, but it seems from then on, it will run as though the same value I originally sent, is sent every time. In other word, if I run with value 14 the first time, it will run every time as though value 14 was sent, even though I have $gProductID set to another value like 16.
I found if I delete the sun java deployment cache, it lets me rerun with a new value. Obviously I can't expect users to clear their caches all the time so a solution is needed. Does this have to do with the cache? If so, how do I get around it? Or something else causing the problem?
Thanks for helping!
Question by:rainglen
    LVL 92

    Expert Comment

    try adding a dummy parameter to the jnlp request or disable caching of the jnlp on your server


    timestamp makes a good dummy var
    LVL 92

    Accepted Solution


    Author Comment

    Thanks for the help. I'm investing if version is an issue. According to sun forums, it seems that browser caching may also be an issue to contend with. See

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now