• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNLP file on local PC

 
Rakesh Ray
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I sent a a.jnlp file to my users and then everything was okay untill I had to update a.jnlp file. Do I have to email the file again to my users?
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you made changes to the .jnlp then yes. If you made changes only to the .jar files referenced by the .jnlp then no.

Regards, Jared.
 
Cristian Negresco
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I don't think that sending you file to the users is necessary. jws could check for an update of the jnlp file from the providing server.

BR,
Cristian
 
Rakesh Ray
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnaks for the reply.
Could you also plese tell me what do I have to put in jnlp file so that it can update itself automatically!!
Thanks again.
 
Cristian Negresco
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think that JWS will always check for the jnlp version on the server and will use that.
Here is a partial of an example jnlp file which work like that although I don't think it has anything special.
Please update the jnlp version on the server and check if that's not used although the users have an older version. If that's the case keep us posted ;0).

BR,
Cristian

<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="0.2"
codebase="$$codebase"
href="$$name">
<information>
<title>xxxx</title>
<vendor>xxx</vendor>
<description>xxxx</description>
<description kind="short">xxxxx</description>
<icon href="xxxx.gif"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
 
Cristian Negresco
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Found something, might help:
_____
Technical Questions

Why does Java Web Start download the application the next time?

Java Web Start will always launch the application from the cache, if possible, and it will simultaneously perform a background check with the server for updates. If updates are available, then it will notify the user, and launch the update versions the next time. This approach ensures fast startup time in the common case where there is no update, and also makes sure that an application can be launched offline.

For the 1.0 release, this behavior can be overwritten by adding the line javaws.cfg.forceUpdate=true in a client's javaws.cfg file. This will force Java Web Start to check for an update the first time. Unfortunately though, setting this flag will cause offline mode to not work properly.

In a future release of Java Web Start, we expect to change the behavior of the update checking to immediatly launch the newer version of the application, if an update is available, while still preserving offline launching. back to top
_____

From :
http://www.dil.univ-mrs.fr/docs/j2sdk/1.5/guide/jws/developersguide/faq.html

BR,
Cristian
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic