今天在用DWR框架做服务器推送小Demo的时候,遇到一个问题:
严重: Polling and Comet are disabled. To enable them set the init-param activeReverseAjaxEnabled to true. See http://getahead.org/dwr/server/servlet for more.
解决方法:
在web.xml中配置:
<init-param>
<param-name>activeReverseAjaxEnabled</param-name>
<param-value>true</param-value>
</init-param>
重新运行服务器,一切OK。