3

I'm trying to implement server Push technology in Grails application using Comet by working out few simple examples, but I'm struggling to make it really work. I've been trying out 2 examples from the below 2 links and it is not working. Not working in the sense, am not able to see the expected result, though I don't get any errors/exceptions.

Any help in the form of working example, pointers, links, suggestions, etc. are really appreciated.

NOTE: As you can see from above posts, the article is 2-3 years old. Currently, I'm running Grails v2.1.0 and cometd plugin is v0.2.2. IDE is NetBeans v7.2.

Gnanam
  • 10,613
  • 19
  • 54
  • 72

1 Answers1

4

I managed to find a solution for server push technology using Grails Events Push Plugin, though, instead of Cometd / Bayeux.

Following links were helpful in implementing server push technology:

  1. Grails with Comet working example
  2. Issue with grails events push plugin
  3. Example of Events-Push in action in the SpringOne2GX Day 1 Keynote video by Graeme (goto 1:06 in the video)
Gnanam
  • 10,613
  • 19
  • 54
  • 72
  • 1
    In *conf/BuildConfig.groovy*, an entry of `grails.tomcat.nio = true` is required for this server push to work properly. – Gnanam Dec 28 '12 at 10:38