Thursday, 31 May 2012

NIO

Applications that have constant connections/feedback from the user to a server and back normally involved polling, a response ticket for accessing later, or Non-blocking IO of some sort (e.g. Netty).  Today we now have better solutions using Servlet 3.0 with asyncronous request processing and HTML 5's web sockets.

Spring MVC:
http://blog.springsource.org/2012/05/06/spring-mvc-3-2-preview-introducing-servlet-3-async-support/

I'm still investigating how to do this with using Jersey with just Jetty and Tomcat, but it looks like Jersey 2.0 isn't ready yet:
http://jersey.java.net/nonav/documentation/snapshot/async.html
http://jersey.java.net/jersey20.html

No comments:

Post a Comment