Welcome!

RIA News Desk

Subscribe to RIA News Desk: eMailAlertsEmail Alerts
Get RIA News Desk via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Related Topics: RIA Developer's Journal, CMS Journal, SOA & WOA Magazine, AJAX World RIA Conference

RIA & Ajax: Article

Using Comet to Create a Two-Player Web Game

Sun Microsystems' Jim Driscoll & Arun Gupta to Present at SYS-CON's AJAXWorld RIA Conference & Expo

Comet (a.k.a. AJAX Push) is a technology that enables web clients and web servers to communicate asynchronously, allowing real-time operations and functions previously unheard of with traditional web applications to approach the capabilities of desktop applications.

Using AJAX and Comet, this presentation walks through the process of creating a simple tic-tac-toe game in which two people play while other people can watch the game via their browser. The session involves creating a simple game playable in one session and then stepping through the process of adding back-end capabilities that enable it to be used in a two-player, distributed way. The presentation is aimed at newcomers to Comet, with lots of slides of example code. Some basic knowledge of AJAX is required for the session, but no knowledge of Comet is assumed. The finished product will be available for download after the session.

This talk discusses APIs that are specific to the GlassFish Application Server; however, the general concepts are applicable to any server-side Comet implementation. Also, we'll briefly cover the new support for asynchronous communications in Servlet 3.0, which will be a part of the Java Enterprise Edition version 6.

Register for AJAXWorld RIA Conference & Expo
Submit Your Paper to Present a Session
Sponsor AJAXWorld RIA Conference & Expo

Speaker Bios: Jim Driscoll has worked at Sun Microsystems for 12 years, working on such projects as the first version of Servlets (in the Java Web Server), and the initial implementation of Java 2, Enterprise Edition. He is currently a Senior Engineer working on the implementation of Java Server Faces, helping to integrate technologies such as AJAX and Comet into the new release.

Arun Gupta is a technology evangelist for Web Services and Web 2.0 Applications at Sun Microsystems. He was the spec lead for JAX-WS, a committer in Project Tango, has represented Sun at W3C, WS-I, SOAP Builders and contributed to the Java EE and SE releases.

More Stories By RIA News Desk

Ever since Google popularized a smarter, more responsive and interactive Web experience by using AJAX (Asynchronous JavaScript + XML) for its Google Maps & Gmail applications, SYS-CON's RIA News Desk has been covering every aspect of Rich Internet Applications and those creating and deploying them. If you have breaking RIA news, please send it to RIA@sys-con.com to share your product and company news coverage with AJAXWorld readers.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.