Demonstrates the Atmosphere Framework (serverside and client side, jQuery.atmosphere.js) in conjunction with Jersey (for RESTful Webservices) and Comet (for reverse AJAX).
For this project GlassFish Server 3.1.2.2 is recommended (3.1.2 is not sufficient! and other application servers have not been tested)
#1 Enable WebSockets in GlassFish: http://www.bennyn.de/programmierung/java/websocket-unterstutzung-in-glassfish-aktivieren.html
#2 Enable Comet Support in GlassFish:
#3 Keep fingers crossed and deploy!