title: JavaEE 6 Servlet for long polling
body: <p>I've tried to create async-servlet for long-polling, using <a href="http://www.oracle.com/webfolder/technetwork/tutorials/obe/java/async-servlet/async-servlets.html" rel="nofollow">this tutorial</a> on my Glassfish server, however it didn't work well, the POST requests were too long (timed out) and GET returned sometimes void response with "Error parsing XML file" firebug message. Can somebody please provide simple async-servlet for handling long-polling requests?</p>