Class AnnotationCometDServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.cometd.server.CometDServlet
org.cometd.annotation.AnnotationCometDServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class AnnotationCometDServlet
extends CometDServlet

A specialized version of CometDServlet that can be configured with the init-parameter services to be a comma separated list of class names of annotated services, that will be processed by ServerAnnotationProcessor upon initialization.

A configuration example:

 <web-app xmlns="http://java.sun.com/xml/ns/javaee" ...>

  <servlet>
    <servlet-name>cometd</servlet-name>
    <servlet-class>org.cometd.annotation.AnnotationCometDServlet</servlet-class>
    <init-param>
      <param-name>services</param-name>
      <param-value>org.cometd.examples.FooService, org.cometd.examples.BarService</param-value>
    </init-param>
  </servlet>
 
See Also:
Serialized Form