Servlet 3 Async task on Tomcat 7

前端 未结 2 1055
别那么骄傲
别那么骄傲 2021-01-31 06:23

I\'m trying to implement Simple chat using Servlet 3.0 and Comet pattern based on its async support.

I\'m inspired by this article: http://www.javaworld.com/javaworld/jw

2条回答
  •  梦如初夏
    2021-01-31 06:48

    I can't comment on Ramesh's code, so I have to place it here... Since no thread wraps round the ChatManager runnable, I believe you should call run() on it and not start(). Also, quite obvious though, it should be new ChatManager()..not new chatManager()...account of Java been case-sensitive.

提交回复
热议问题