title: How do I use Comet with Spring MVC?
body: <p>I'd like to add some <a href="http://en.wikipedia.org/wiki/Comet_(programming)" rel="noreferrer">Comet/server push</a> capabilities to a simple web application.  I'm having trouble finding up to date information on how to do this.</p>
  
  <p>Can anyone point me to some examples, tutorials, blogs, or anything recent that walks you through using Comet with <a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html" rel="noreferrer">Spring MVC</a>?</p>
  
  <p>In case it matters, I'm using <a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/view.html#view-velocity" rel="noreferrer">Freemarker</a> to render the views, and <a href="http://jquery.com/" rel="noreferrer">JQuery</a> for the JavaScript framework.</p>
  
  <p><em>Aside:</em> I already know all about <a href="http://liftweb.net/" rel="noreferrer">Lift</a> and its awesome Comet support built-in.  This app is a proof of concept that I've already implemented using Lift.  Now I'm building it with Spring MVC to compare and contrast.</p>
  
  <p><em>Edit:</em> I've started trying out <a href="http://directwebremoting.org/dwr/index.html" rel="noreferrer">DWR</a>.  It's not fantastic, but I can make something that works.  I also checked out <a href="http://atmosphere.java.net/" rel="noreferrer">Atmosphere</a>, but I couldn't get any traction with it at all.</p>
  
  <p>I'm leaving the question open.  Hopefully some better suggestions will come in.</p>