Grails with Comet working example
-
24-07-2021 - |
質問
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.
解決
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:
- Grails with Comet working example
- Issue with grails events push plugin
- Example of Events-Push in action in the SpringOne2GX Day 1 Keynote video by Graeme (goto 1:06 in the video)