21
CSc 667/867 CSc 667/867 Java Web Start / J Java Web Start / J NLP NLP RSS RSS

CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

  • View
    222

  • Download
    2

Embed Size (px)

Citation preview

Page 1: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

CSc 667/867CSc 667/867Java Web Start / JNLPJava Web Start / JNLP

RSSRSS

CSc 667/867CSc 667/867Java Web Start / JNLPJava Web Start / JNLP

RSSRSS

Page 2: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

Deploying Software with JNLP and Java Web

Start • Delivering client-side Java technology-based progr

ams has recently been a daunting task. Browser differences -- both in versions of the Java Runtime Environment (JRE) and security architecture -- have caused many developers to abandon rich client-side solutions in favor of using Java technology on the server, with JavaServer Pages (JSPTM) and servlets. But now that Java Web Start -- and the underlying Java Network Launch Protocol (JNLP) -- are a standard part of the Java 2 platform (as of version 1.4), it's far easier to deploy cross-platform, client-side systems.

Page 3: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

Java Web Start • a mechanism for program delivery through a

standard Web server. Typically initiated through the browser, these programs are deployed to the client and executed outside the scope of the browser.

• Once deployed, the programs do not need to be downloaded again, and they can automatically download updates on startup without requiring the user to go through the whole installation process again.

• They continue to run within a restricted container, or sandbox. Since Java Web Start runs on top of the Java 2 platform, you also have access to the underlying security architecture.

Page 4: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

How to launch JWS at your browser?

• download Web Start for your platform. Java Web Start itself is only about 1 MB. However, it requires the Java Runtime Environment (JRE), so if a you (or a user) don't have a JRE, the download size increases accordingly, to just under 6 MB on Microsoft Windows platforms.

Page 5: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently
Page 6: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

Tutorials & Good resources

• From Setup Java Web Start to Jar signing– http://www.mobilefish.com/developer/java

webstart/javawebstart.html• Deploying Software with JNLP and Java

Web Start– http://java.sun.com/developer/technicalAr

ticles/Programming/jnlp/

Page 7: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

Steps to set up a JWS• The client machine requires support for the Ja

va Runtime Environment (JRE), version 1.2.2 or higher.

• The Web server where the application is deployed must be configured with support for a new MIME type. – application/x-java-jnlp-file jnlp

Page 8: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently
Page 9: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently
Page 10: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently
Page 11: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

RSS or RSS Feed• a Web site will make a feed, or channel,

available, just like any other file or resource on the server. Once a feed is available, computers can regularly fetch the file to get the most recent items on the list. Most often, people will do this with an aggregator, a program that manages a number of lists and presents them in a single interface.

Page 12: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

RSS - What is all the fuss about?

Page 13: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

What is RSS Good For?

• RSS can deliver current information from the Internet in our areas of expertise or interest.

– RSS comes close to fulfilling the promise of a custom newspaper or magazine that is delivered to our desktop.

– Some RSS feeds are updated hourly (Associated Press and BBC news), some RSS feeds are updated daily, and others are updated weekly or irregularly. RSS reduces my web surfing time and gives me more reading time.

• RSS can provide content for websites and blogs.

• RSS can bring additional traffic to a website or blog.

Page 14: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

Purpose of RSS• Instant information

– Information updated in realtime• Single source

– All information aggregated in a signle location, or personalization

• Rapid scanning– Feed readers highlight unread headlines

• Categorizing– Information can be categorized by theme

Page 15: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently
Page 16: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently
Page 17: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently
Page 18: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

Make RSS Feeds (RSS Tags)• <channel></channel> : Root Element• Required children elements

– <title>, <link>, <description>• Optional children elements

– <pubDate>, <lastBuildDate>, <language>, <copyright>, <webmaster> <managingEditor>, <category>, <generator>, etc

<channel> <title> Make RSS Feeds </title><description> Details RSS feed creation in a step by step fashion </description><link> http://www.make-rss-feeds.com </link> <pubDate> Aug, 22 2004 00:12:30 EST </pubDate><lastBuildDate> Aug, 22 2004 00:12:30 EST </lastBuildDate><language> en-us </language><copyright> Copyright 2004, NotePage, Inc.</copyright> <webMaster> [email protected] </webMaster><managingEditor> [email protected] </managingEditor> <category> newspapers </category> <generator> feedforall </generator> <ttl> 120 </ttl> <docs> http://blogs.law.harvard.edu/tech </docs> </channel>

Page 19: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

RSS Tags• Image <image> is a child element of <channe

l> and can have children elements as below:– title, description, url, width, height, link (a hyper lin

k when the image is clicked)

• Item <item> is a child element of <channel> and can have children elements as below:– title, description, link, pubDate, category,

Page 20: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

Creating RSS Feeds1. Create a feed (filling the tags)2. Determine Content

RSS feed can be used an number of ways. The idea is for a feed to contain content that will be updated on a regular basis.

3. Enter Data in Main Fields – The important fields are:– Channel - title, description & links

Item - title, description & links– You may enter data either using server side program or

manually.

5. Submit Feed (xml file) to RSS search engines and directories (so people find it well)

6. Publish the feed on your web site

Page 21: CSc 667/867 Java Web Start / JNLP RSS. Deploying Software with JNLP and Java Web Start Delivering client-side Java technology-based programs has recently

Behind the scene• You may use Bloglines or my Yahoo! To subsc

ribe a specific RSS for your interesting subject.

• The RSS pub updates “something.xml” at its web site.

• My Yahoo! Or Bloglines will periodically check that xml file to see if it has been updated.