Plugins You can find out about all the publicly available Grails plugins.

CometD Plugin

  • Authors: Marcus Better
3 votes
compile "org.grails.plugins:cometd:0.2.2"





grails install-plugin cometd


CometD Plugin

CometD is a scalable HTTP-based event routing bus that uses an Ajax Push technology pattern known as Comet.

This plugin allows your Grails application to send asynchronous notifications to HTTP clients using CometD and the Bayeux protocol.


CometD Servlet

The plugin configures a CometdServlet, mapped to the path cometd relative to your web application's context path.

Bayeux Service

A bean named bayeux is made available to your application. It is an instance of BayeuxServer. This is used to interact with the Comet server.


The plugin is configured in Config.groovy, with options prefixed with "plugins.cometd". The following options are defined:


The plugin sources are on GitHub:

git clone git://
Contributions are welcome, preferably by pull request on GitHub.

Further information

see for an example as to how to use CometD 2.x with Grails and this plugin.


Version 0.2.2

  • Support for Grails 1.2.1 and later.
  • Update to CometD 2.0.0 release.

Version 0.2.1

Version 0.2

  • Rewritten from scratch for CometD 2.0.