Salut,
in the upcoming weeks I will be a speaker at tech days (Paris/Montreal)
and conference (Devoxx), most of them on Comet (one on Grizzly AIO). I'm
still not allowed to commit in the workspace my GWT Auction demo build
on top of Comet, but I've added a new demo which mimic Twitter.com (and
improve it significantly as you can move updates!), all of this build on
Grizzly Comet.
As usual, the graphical interface is less that perfect, but my artistic
skill ;-) has improved since I've wrote the Comet Chat :-)
The Web application consist of:
+ One Servlet (TwitterServlet)
+ JMaki Comet implementation
+ Behaviors/Prototype application
The demo exercise:
+ Multiple CometContext (one per Twitter)
+ Pushing from one Context to the other (update from one user to the other)
+ Multiplexing an http connection from the browser (the browser update
real time several part of the interface using a single connection)
+ HttpSession (The Servlet Container in general)
+ Push to single client.
I've tested the application using the Comet & Servlet module (works on
my iPhone :-)). Try it:
% java -jar grizzly-comet-webserver-1.9.0-SNAPSHOT.jar -p 8080 -a \
target/grizzly-twitter.war com.sun.grizzly.samples.comet.TwitterServlet
The war file can be downloaded from here:
http://download.java.net/maven/2/com/sun/grizzly/samples/
This demo + GlassFish v3 will be just amazing :-)
What's next: I will document all of this, specially the client side. The
Servlet is quite simple, which is the goal :-). The blog machine will
starts as well :-)
Anybody interested to improve the application is welcome. Specially the
client side :-)
-- Jeanfrancois