|Buy Our Products
Some Deployment Considerations when you are considering JNLP
Web Server Setup
While Java Web Start and JNLP rely on existing technologies like HTTP and a Web server, there is one configuration issue that must be addressed for JNLP to work properly. It isn't always sufficient to just create a
.jnlp file and put it on your Web server with the rest of the application; the Web server must be configured to return the proper MIME type for the JNLP content -- and that MIME type must be
If you are using the latest version of Tomcat -- 4.0.x -- this is already configured for you. If you look in the
web.xml file in the
conf directory under the installation location, you'll find the following piece of information:
Prior versions required you to manually add this information. (Other Web servers support adding MIME types in different fashions.)
To try out your new JNLP-based application, copy the
time.jnlp file and
JNLPTime.jar to a directory under the Web server where files are loaded from (for Tomcat, under
webapps/ROOT). You'll also need to change the codebase in the
time.jnlp file to reference the Web server (most likely
http://localhost:8080) instead of the previous file URL. Then, make sure Tomcat is started, and load the application.
To demonstrate the updating capabilities of JNLP, change the JAR file on the Web server to do something else. The next time you start up the application, the new version will be downloaded.
IIS Server Setup
For Windows IIS servers please review this article and remeber to use <application/x-java-jnlp-file> as your mime type
For More Information
Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S.
and other countries. Other products and companies referred to herein are trademarks or
registered trademarks of their respective companies or mark holders.