overview one-click launch of application auto-install feature provide versioning/caching feature for...
TRANSCRIPT
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
<?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>
Example of descriptor
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
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
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.
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+"/>