Updating xml file using java
In computing, Java Web Start (also known as Java WS, javaws or JAWS) is a framework developed by Sun Microsystems (now Oracle) that allows users to start application software for the Java Platform directly from the Internet using a web browser.
Some key benefits of this technology include seamless version updating for globally distributed applications and greater control of memory allocation to the Java virtual machine.
The JNLP client parses this file, requests the resources specified (jar files), waits for the retrieval of all required resources, and then launches the application.
The JNLP file can list resources as "lazy", which informs the JNLP client that the application does not need those resources to start, but can retrieve them later on when/if the application requests them.
JNLP works in a similar fashion to how HTTP/HTML works for the web.
For rendering an HTML webpage, after the user clicks on a weblink, the browser submits a URL to a webserver, which replies with an HTML file.
The example below gives a simple JNLP file to launch the applet, specifying code base, source, main class and window size.
Such file contains all necessary references and is self-sufficient to launch the application.
Web Start can also launch unmodified applets that are packaged inside files, by writing the appropriate JNLP file. This file describes the application requirements, code location, parameters and additional permissions (if any).Any computer user can use JNLP simply by installing a JNLP client (most commonly Java Web Start).The installation can occur automatically such that the end-user sees the client launcher downloading and installing the Java application when first executed.Java Web Start has supported Pack200 since it first appeared, but initially this feature required server-side cooperation and a certain amount of expertise to set up.When Sun introduced Java SE 6u10, Pack200 support became available without the need for special server support.