Rich Clients for Web Services


Summary: Rich Clients + Web Services = Best Web Experience


Overview


Remember WORA?


Apple Demo


Last Year: “WebAwareWare”


Last Year: “WebAwareWare” BLOGGER Demo


This Year: Rich Clients for Consenting Servers


Java™ Technology Web Services Model


Web Services


How Smart Is Smart Enough?


Why Build/Deploy Rich Clients


Building Rich Clients


iPlanet™ Calendar and Directory Servers


Calendar HTML/JavaScript™ GUI Login


Calendar HTML/JavaScript GUI Month View


Working with HTTP


Calendar Request: Login


Calendar Login Response


Request Generation and Parsing— Create the URL


Request Generation and Parsing— Get the XML Document


Request Generation and Parsing— Extract Document Data


Server Requests and Responses Review


Building the Rich Client GUI


Motivation: The N Commandments


Typical Rich Client GUI Task


Typical Rich Client GUI Task: Literal Implementation


Literal Implementation: Fatal Flaw


Fatal Flaw: server.login() Blocks


Using a Work Queue


Building a Work Queue


The WorkQueue Thread


Server Request on the WorkQueue


Server Request on the WorkQueue (Cont.)


Event Dispatching and Worker Queue Threads


Activity Monitor, Cancellation


New Base Class Does the Work


ServerAction in Action


Responsive GUI— Use a WorkQueue Review


Web Deploying a Rich Client Java Web Start software


Web Deployment Basics HTML File


Web Deployment Basics JNLP API File


Web Deployment Review


Motivational Reminder


Demo!


Java™ Technologies for the Desktop: Web to PC


Call to Action