How JNLP Works

The basic steps in any Java applet/application (from now on, we'll use application for brevity) deployed with JNLP are as follows (see Figure 8.2 below):

1.
Execution of the JNLP client with a JNLP file.
2.
The JNLP Client takes care of retrieving and automatically caching all the pieces needed by the application, following the instructions contained in the JNLP file. The next time there will be no need to download them again. It even checks for new versions eventually available on the server.
3.
When this is done, the JNLP client launches the Java application, waiting in the background to offer some runtime services, just as Web browsers do with applets. When the application exits, so does the JNLP Client.
Figure 8.2. JNLP ...

Get Java™ Deployment with JNLP™ and Webstart™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.