Hi,

  James Todd (a Sun JXTA staff developer) has written
up a blog story about how to use Web Start and JXTA
together titled "Deploying JXTA just got a whole lot
easier".

  James writes:

  For my particular app I distribute a single jar,
that is myjxta-2.2a.jar, yet I largely (and happily)
depend upon JXTA and all it's constituents with which
it is comprised, some of which may (or may not) be
signed 3rd party jars in turn and can vary over time,
etc.

  JNLP 1.0.1 (and possibly earlier) inlcludes a really
cool "extension resource" such that any one app can
reference zero or more "component" JNLP distributions
which can, in turn, further reference zero or more
component JNLP distributions. The result, of which, is
that I, as a JXTA application developer, need no
longer care about JXTA deployment details, upgrades,
jar signing, etc. To be honest, all of the above are
issues that one, to an extent, should be aware of but
my point is that with this very enabling deployment
model I need not care as much about the constituent
details as I was forced to without JNLP, and to that
end I "throw mad props" to WebStart/JNLP team.

As a result, my new JNLP file is elegantly simple and
included here:

<?xml version="1.0" encoding="utf-8"?>

<jnlp spec="1.0+"
      codebase="http://download.jxta.org/myjxta2/2.2a";
      href="myjxta.jnlp">
  <information>
    <title>MyJXTA</title>
    <vendor>myjxta2.jxta.org</vendor>
    <homepage href="http://myjxta2.jxta.org"/>
    <description>MyJXTA: chat, share ... change the
world</description>
    <icon href="news.gif" width="10" height="16"/>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se version="1.4+"/>
    <jar href="lib/myjxta-2.2a.jar" main="true"
download="eager"/>

    <extension
href="http://download.jxta.org/platform/2.2/platform.jnlp"/>
    <extension
href="http://download.jxta.org/cms/2.2/cms.jnlp"/>
  </resources>
  <application-desc
main-class="net.jxta.myjxta2.Main"/>
</jnlp>

  Lastly, here's the app in question: MyJXTA 2.2a   


  Full story @ http://weblogs.java.net/pub/wlg/790 and
http://myjxta2.jxta.org

   - Gerald


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
lopica-announce mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lopica-announce

Reply via email to