如何将GWT连接到CometD / Bayeux事件? [英] How can I connect GWT to CometD/Bayeux events?
问题描述
当然,我可以放入JavaScript,挂接Dojo,并在JavaScript层接收回调,从那里,通过JSNI将一个调用转换为GWT Java代码 - 但是除了非RESTful RPC之外,GWT中直接使用长推或异步调用似乎没有任何支持。
您如何整合GWT和Bayeux?
问题最初发布在那里有一些进展:
- http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ
- http://code.google.com/p/gwteventservice/
- http://code.google.com/p / gwt-comet /
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 have 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/
这篇关于如何将GWT连接到CometD / Bayeux事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!