I am using java web start as a standard deployment technology for my application. I wants to know what is the difference between offline-allowed and update tag.
offline-allowed says that application can be operate when the client system is disconnected from the network
<update check="background" policy="prompt-update"> :- will mean launch the application while checking the update in background and ask the user if he wants wants to download the updated version or launch the cached version.
I am confused with the offline-allowed, does that mean offline-allowed check if the user machine connected to the server where the application is deployed for the update or it just check normal internet connectivity.
What would be the effect if someone use both tag in their jnlp file.
Overall I wants my application to check for the update in background[using the desktop shortcut not the browser link, I do not want to access the application using browser ever time] and ask whenever update is available but it should also allow application to be launched irrespective of the availability of the server hosting jnlp file.
FYI: my application will need to connect to internet for other operations but I can not gurantee the availability of the server hosting jnlp and other application jar file.
Please let me know if you have any suggestions or questions.
Thanks
When you launch JNLP file first time, it installs the application (defined in JNLP xml file) to JVM (Control Panel -> Java -> General -> View).
update check="background"configuration allows you to synchronize your version with server and install new if server has new one. If you doesn’t have connectivity with server – nothing will happen.Second one will be affected.
Here is JNLP example: