1 / 7

Overview

Overview. One-click launch of application Auto-install feature Provide versioning/caching feature for update/fast startup Provide some API for desktop application bundle a JNLP-deployed application in a Web Archive (WAR) file. Architecture. Example of descriptor.

royal
Download Presentation

Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Overview • One-click launch of application • Auto-install feature • Provide versioning/caching feature for update/fast startup • Provide some API for desktop application • bundle a JNLP-deployed application in a Web Archive (WAR) file

  2. Architecture

  3. Example of descriptor <?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.0+" codebase=http://localhost:8080/ekp/nd href="http://localhost:8080/ekp/nd/test.jnlp"> <information> <title>JWS test</title> <vendor>Netdimensions</vendor> <homepage href="http://www.netdimensions.com"/> <description>Test</description> <icon href="http://www.netdimensions.com/netd_images/logo.jpg"/> <offline-allowed/> </information> <security> </security> <resources> <j2se version="1.3"/> <jar href="http://localhost:8080/ekp/nd/test.jar"/> </resources> <application-desc main-class="test.test"/> </jnlp>

  4. Extra Tag useful in descriptor • Define extra parameter • <application-desc main-class="Main">     <argument>arg1</argument>     <argument>arg2</argument> </application-desc> • Define VM parameter • <j2se version="1.3" initial-heap-size="64m"/> <property name="..." value=".."/> • Demo • http://carfield:8080/ekp/nd/test.jnlp

  5. Auto Install • Only For Windows platform • <OBJECT CODEBASE="http://java.sun.com/products/javawebstart/autodl/jinstall-1_4_1-windows-i586.cab" CLASSID="clsid:5852F5ED-8BF4-11D4-A245-0080C6F74284" HEIGHT=0 WIDTH=0> <PARAM NAME="app" VALUE="http://carfield:8080/ekp/nd/test.jnlp"><PARAM NAME="back" VALUE="true"><!-- Alternate HTML for browsers which cannot instantiate the object --><A HREF="http://java.sun.com/cgi-bin/javawebstart-platform.sh?">Download Java Web Start</A></OBJECT> • Replace CODEBASE for complete JRE install • Demo: http://carfield:8080/ekp/nd/test1.html

  6. Java Web Start API • BasicService, which provides a service similar to the AppletContext. • DownloadService, which allows an application to interact with the JNLP Client to check if application resources are available locally, and to request them to be downloaded. Service allow un-trust client execute system function • FileOpenService • FileSaveService • ClipboardService • PrintService • PersistenceService, key base persistence store like cookies • ExtensionInstallerService, which provides an interface for extension installers to communicate with the JNLP Client.

  7. Other Feature • Able to access system resource using code signing • Cache the jar in hard-disk • Packaging JNLP Applications in a Web Archive • Versioning support:<jar href="http://www.mysite.com/b.jar" version="2.3+"/>

More Related