The Source for Java Technology Collaboration
User: Password:



Igor Kushnirskiy's Blog

February 2008 Archives


Scenario Webstart Extension

Posted by idk on February 08, 2008 at 08:37 PM | Permalink | Comments (4)

Scenario version 0.5 is out. For the list of features and enhancements check out Hans's announcement here.

One of the things we have done for this and will do for future releases is to provide a webstart extension for Scenario binaries. Using the extension allows for simpler deployment for webstart enabled applications which use Scenario. Instead of hosting Scenario binaries on your website you can reference them using extension tag in resources section of you jnlp file. The extension for release 0.5 is available here: http://download.java.net/javadesktop/scenario/releases/0.5/Scenario-0.5.jnlp.

Take this demo for example: (Note: java 6 is required to run it)

Here is jnlp file for this demo:

<?xml version="1.0" encoding="UTF-8"?>
  <jnlp codebase="http://download.java.net/javadesktop/blogs/idk/02.08.2008" href="movie.jnlp">
  <information>
    <title>Countdown Film Demo</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    <offline-allowed />
  </information>
  <resources>
     <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
     <extension name="Scenario-0.5" 
       href="http://download.java.net/javadesktop/scenario/releases/0.5/Scenario-0.5.jnlp"/>
     <jar href="movie.jar" />
  </resources>
  <application-desc main-class="demo.movie.Movie"/>
</jnlp>

Resources

The sources for the demo are available here or in the scenario-demos repository here.





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds