• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Check for latest version check of JWS

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
In my application everytime JWS is first check for the latest version present or not.
It is taking lot of time to verify the latest version.
Can we control the same either with jnlp or any other flag is there where we can put whether new version is there is or not.


Thanks
Kushagra
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The update element is your friend in this case.
http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/syntax.html
 
Kushagra Bindal
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Manish,

Thanks for the reply.

I have go throungh the link that you have provided to me. In that I have found few things that fulfill my problem. I applied them but still not get any result that my users want.
It still asking every time" checking for latest version....".. And many time system hang out and nothing happen then.

Can there is any solution for the problem.
Means to check for the updates in the jar files if having then download them in background. And don't prompt user everytime to chek for the version on the screen.

Thanks
Kushagra
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) Clear your application cache. On windows settings->control panel->java->Temporary Internet Files->Settings->Delete Files
2) Clear your browser cache.
3) Try launching the application.

You can use the Java console to see if you got any exceptions.
Post the stack trace here so we can try and help you.
 
Kushagra Bindal
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Actually I have clear all the cache anf\d temp file. But still I takes lot of time.

Also I have checked for the exception too.
But there is no such type of exception there.

Also on the same time I ma moving in the following direction

I have two way out.

1. While launching the JWS from the javascript it will set a variable which will tell the JWS not to check for the updates in front of the users and check it in background.


2. Set a variable in jnlp file which will chek for the update in the background and download automatically if present and not pompt user for the same.


Please suggest me if there is any other way and also if there is any solution regarding the above two way.

Thanks
Kushagra
 
Marshal
Posts: 28295
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's your goal here? Do you want the background check to come back after 2 minutes, when the user has already started using the old version, and tell them to get off so the new version can be started? Seems to me you have identified a problem (it takes a long time to find whether there's a new version) and instead of finding out why the problem exists or trying to solve it directly, you're trying to implement a workaround without considering its implications.
 
Kushagra Bindal
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you are right.

I have to find out the solution of the problem.
But still of the same stop and not finding how to make it faster or can we check the version. Means is it possible to handle a flag which contains the version of the updated jar files which JWS download if it finds. And then firstly we will check the version of the flag and find if there is any change in the version of the files then download them from the server.

If is there a way to do this. Then please let me know the way.

Thanks
Kushagra
 
Kushagra Bindal
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a solution regarding the same. As I am really stuck with the same problem.
Also one more thing some time what happen my JWS will show "Java Loading..." and after some time it become disappear and then nothing happen with the JWS and then I have to reopen the same by click on the same button again and this is also happening to me for a lot of time.

Thanks
Kushagra
 
Kushagra Bindal
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there no way to handle out these two problem.

Please help me out if anybody have any solution for the same.

Thanks
Kushagra
 
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic