comet4j 一个简单的实例
<listener>????????????????<description>Comet4J容器侦听</description>????????????????<listener-class>org.comet4j.core.CometAppListener</listener-class>????????</listener>????????<servlet>????????????????<description>Comet连接[默认:org.comet4j.core.CometServlet]</description>????????????????<display-name>CometServlet</display-name>????????????????<servlet-name>CometServlet</servlet-name>????????????????<servlet-class>org.comet4j.core.CometServlet</servlet-class>????????</servlet>????????<servlet-mapping>????????????????<servlet-name>CometServlet</servlet-name>????????????????<url-pattern>/conn</url-pattern>????????</servlet-mapping><listener>??<description>HelloWorld</description>??<listener-class>org.comet4j.demo.helloworld.HelloWorld</listener-class></listener>
<!--EndFragment-->