Skip to main content

Servlet 3.0 Asynchronous API or Atmosphere? Easy decision!

Posted by jfarcand on November 6, 2009 at 9:38 AM PST

This blog has moved here

Related Topics >>

Comments

The above AjaxCometServlet.java is part of the GlassFish ...

The above AjaxCometServlet.java is part of the GlassFish sample code that I and JeanFrancois worked on in April. After that, the AsyncListener interface has been updated to include two more methods onError and onStartAsync. The lattest AjaxCometServlet.java can be found in: https://glassfish-samples.dev.java.net/source/browse/*checkout*/glassfis...
Shing Wai Chan

Meteor and notifications

Hi, the Meteor/servlet integration is really interesting. Let's say I have an existing application and that I just want to be notified of when the client drops the connection. The Meteor API does not look like it's providing such ability. Is it implementable, or I'm just looking for unicorns here? ;-)

You are right. If you want to

You are right. If you want to get notified when the client close the remote connection. If you want to to get notified when the connection close and use the Meteor, you will need to extend the ReflectorServletProcessor ... let's continue the discussion on users@atmosphere.dev.java.net