Sign in to edit and +1 items.
Login required
Download

CometD Plugin

(2)
Author(s) Marcus Better
Current Release 0.2.2   (1 year ago)
Grails Version ?
Tags ajax  comet  push  rich client 
Dependency
compile ":cometd:0.2.2"
Last updated by marcusb 1 year ago

Installation

grails install-plugin cometd
Last updated by marcusb 1 year ago

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.

Usage

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.

Configuration

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

Development

The plugin sources are on GitHub:

git clone git://github.com/marcusb/grails-cometd.git
Contributions are welcome, preferably by pull request on GitHub.

Further information

see http://metasieve.wordpress.com/2010/08/25/using-cometd-2-x-with-grails/ for an example as to how to use CometD 2.x with Grails and this plugin.

History

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.
Last updated by admin 3 years ago
Last updated by admin 3 years ago