开发者

How can I connect GWT to CometD/Bayeux events?

I've got a GWT application, which periodically needs to update the screen with new tick items as they come in. We also have messages published by a CometD/Bayeux server (for a different AJAX application) and I'd like to consume them in my GWT.

Of course, I can drop into JavaScript, hook up Dojo, and receive callbacks in the JavaScript layer - and from there, route a call into GWT Java code via a JSNI - but there doesn't appear to be any support in GWT directly for using long push or async calls other than the non-RESTful RPC.

How h开发者_开发知识库ave you integrated GWT and Bayeux?


Since this question was originally posted there have been a few advances:

  • http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ
  • http://code.google.com/p/gwteventservice/
  • http://code.google.com/p/gwt-comet/


JSNI is not that bad option as it might sound first. There is a DZone refcardz 'GWT: Style, Configuration and JSNI Reference' which I have found helpful.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜