aspose file tools*
The moose likes JNLP and Web Start and the fly likes WebStart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "WebStart" Watch "WebStart" New topic
Author

WebStart

Alec
Greenhorn

Joined: Apr 16, 2002
Posts: 1
I am wondering if someone has any suggestions in how to work around this problem in webstart.
The problem happens if the user is running an application that was started using webstart. And the application is updated to a new version in the server. And then, the user starts another instance of the application while running the previous instance. Webstart fails to update the jars in the client, but it thinks that it has updated the jars for the new version.
Any ideas?
Thanks
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Alec
Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!


Dave
Hema Menon
Ranch Hand

Joined: Oct 29, 2000
Posts: 569
Originally posted by Alec:
I am wondering if someone has any suggestions in how to work around this problem in webstart.
The problem happens if the user is running an application that was started using webstart. And the application is updated to a new version in the server. And then, the user starts another instance of the application while running the previous instance. Webstart fails to update the jars in the client, but it thinks that it has updated the jars for the new version.
Any ideas?
Thanks


Does the webstart throws any exception on launching when you start the second instance? If both the instances are running on the same box, chances are the first instance of the webstart might be using the jars, thus preventing the second instance from renaming the jars when it finds an update. I had come across a situation when my application did not exit gracefully(javaw process was still running even after closing webstart), and when I tried to launch the application again thru webstart, it thru a JNLP exception stating that it is unable to rename the jars. After removing the inital javaw process, the application was able to launch properly.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: WebStart