While the jws application is running it should look for new updates. If there are any, it displays a message like "There is a new version. Please restart the application to download the latest update". The problem is I don't know how to look for an update of the jws application. I've tried to use DownloadService2 (JNLP API Examples) but failed.
This code should check for new updates and gets called periodically:
The jar and the jnlp are hosted on a webserver and downloaded from there. If anything has changed in the code I upload a new jar unto the server. But service.getUpdateAvailableResource(spec) doesn't find any updates.