Hi Friends...
How do I set up my server to use the JnlpDownloadServlet? and what is the benefits of it.
Thanks.........
JNLP DownloadServlet
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Chintan RathodRank #516 · 4.8K reputationPosted Dec 24, 2011, 10:10 AM EST
Introduction
Java Web Start includes a servlet in the sample/jnlp directory of the JDK. It can be used on either a JNOP file and its associated resources packaged in a Web Archive (.war) file, or on an unarchived directory. The purpose of the servlet is to provide a simple and convenient packaging format for JNLP applications, so they can be easily deployed in a Web Container, such as Tomcat or a J2EE-compliant Application Server.The download servlet supports the following features:
- Automatic installation of the codebase URL into JNLP files, thus eliminating manual management of hard-coded URLs into JNLP files.
- Explicit specification of the timestamp for a JNLP file, independent of the file-system timestamp.
- Supports all download protocols defined in the JNLP specification v1.0.1. These include basic download protocol, version-based download protocol, and extension download protocol.
- Version-based information is specified per file or per directory in the Web archive. Thus, no centralized file needs to be managed for the entire archive.
- Automatic generation of JARDiff files
- The servlet supports Pack200 compression for application files.
The packaging support consists of one servlet: JnlpDownloadServlet. The servlet is packaged into the jnlp-servlet.jar file, which can be found in the SDK under samples/jnlp/servlet/.For Example refer:
http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/downloadservletguide.html