Skip navigation.

CometD 2 Java Server Services

CometD 2 Java Server API: Services

A CometD service is a Java class that allow a developer to specify the code to run when Bayeux messages are received on Bayeux channels.
When a message arrives on a channel for which the service instance has subscribed to, a callback method is invoked to execute user-specific code.

CometD 2 services can be of two kinds: inherited or annotated.

CometD 2 services can also be integrated with the Spring Framework as explained here.