How often does a Java Web Start application update itself?



I've read through the documentation at
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/syntax.html
and I'm a bit confused about when does Java Web Start check whether an
updated version of the application is available. From the docs:

<quote>
If offline-allowed is specified, then the application can be launched
offline by the Java Application Cache Viewer, and shortcuts can be created
which launch the application offline. If an application is launched offline,
it will not check for updates and the API call BasicService.isOffline() will
return true.
[...]
If offline-allowed is specified, Java Web Start will also check to see if an
update is available.
</quote>

When the application is first "installed", JWS will offer to create
desktop icons. So the documentation makes it sound like if the user launches
the application using these desktop icons, then the application will be
"launched offline", meaning no checks will be made for an updated version.

What I want is:

* Give the user the opportunity to run the application without being
connected to the Internet.
* Let the user run the application using the desktop shortcuts for their
convenience.
* If the user *IS* connected to the Internet, to periodically check for
update versions.

I am willing to modify my application so that it performs the check
itself, rather than relying on Java Web Start, though of course if JWS can
do this automatically for me, that would be easier on my side.

Any advice on how I can get the desired behaviour described above? I
guess I'm looking for some sort of "always try to launch online, but settle
for launching offline if there's no Internet connection" setting.

In case it matters, you can download the JNLP file from
http://nnr4itg.sourceforge.net/NNR4ITG.jnlp

- Oliver


.



Relevant Pages

  • Re: Taking a plan offline
    ... >working with a project in Offline mode. ... >connection, such as while on an airplane, but still need ... Launch Microsoft Project Professional ... In the Project Server Accounts dialog, ...
    (microsoft.public.project.pro_and_server)
  • Re: Java on the desktop
    ... >What would be the best way to develop the desktop service? ... Java Web Start is likely what you want. ... to control whether apps can run offline. ... JWS is usually Swing. ...
    (comp.lang.java.programmer)
  • Re: Where can I download IE?
    ... files & offline content. ... when trying to launch IE, it continues to freeze up. ... Do not send email http://www.fjsmjs.com Protect your PC ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Have a look at my TreeTable implementation
    ... > the abilitiy to launch a Frame containing ... > Andrew Thompson ... with Java Web Start I think. ...
    (comp.lang.java.gui)
  • Re: ie not establishing connection after initial boot
    ... Jon R. Kennedy ... When I switch on my machine and launch IE it always gives me the work ... offline and "try again" message/button. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)