How often does a Java Web Start application update itself?
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 15:14:42 GMT
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
.
- Follow-Ups:
- Re: How often does a Java Web Start application update itself?
- From: Roedy Green
- Re: How often does a Java Web Start application update itself?
- From: Roedy Green
- Re: How often does a Java Web Start application update itself?
- From: Roedy Green
- Re: How often does a Java Web Start application update itself?
- From: Roedy Green
- Re: How often does a Java Web Start application update itself?
- From: Andrew Thompson
- Re: How often does a Java Web Start application update itself?
- From: Bent C Dalager
- Re: How often does a Java Web Start application update itself?
- Prev by Date: Re: Exception in thread "main" java.lang.NoClassDefFoundError
- Next by Date: Re: Book Recommendation
- Previous by thread: Exception in thread "main" java.lang.NoClassDefFoundError
- Next by thread: Re: How often does a Java Web Start application update itself?
- Index(es):
Relevant Pages
|
|