Search code examples
javaspringtomcatspring-mvccomet

Configurable Comet servlet with Spring MVC


I added Comet servlet into Spring web application. This servlet does not differ from the example of a servlet: http://tomcat.apache.org/tomcat-6.0-doc/aio.html#Example_code

I can connected in javascript to this comet servlet but when there need to transfer data (READ Event) then it's only going to timeout so the function writer.flush(); in MessageSender isn't work

I think this servlet is Spring blocked. There are other opinions and how can I added comet servlet in Spring?


Solution

  • See related qestion.

    It is good aproach - to use Atmosphere library.