Search code examples
javaswingjakarta-eejava-7java-web-start

How to determine Java Webstart application runs Test vs Prod?


I have a feeling that there are still users pointing to the Test application. How can the user tell that they are on test vs prod? Right now they launch it from a shortcut on their desktop. Anything that we can do inside the app to warn them that they are on test?

Thanks in advance.


Solution

  • Assuming that exposing the link to Test was an error,

    • Specify a suitable update element.

      <update check="always" policy="prompt-update">
      
    • Remove <offline-allowed/>, if necessary, as suggested here.

    • Add a splash screen or modal dialog that notifies the user.

    • Invoke Desktop#browse() on the desired link.

    • Explain the benefits of updating promptly.

    • Retire the errant link after a time.