如何将GWT连接到CometD / Bayeux事件? [英] How can I connect GWT to CometD/Bayeux events?

查看:153
本文介绍了如何将GWT连接到CometD / Bayeux事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个GWT应用程序,它们定期需要更新屏幕,新的刻录项目进来时。我们还有一个CometD / Bayeux服务器发布的消息(对于不同的AJAX应用程序),我想在我的GWT中消费它们。



当然,我可以放入JavaScript,挂接Dojo,并在JavaScript层接收回调,从那里,通过JSNI将一个调用转换为GWT Java代码 - 但是除了非RESTful RPC之外,GWT中直接使用长推或异步调用似乎没有任何支持。



您如何整合GWT和Bayeux?

解决方案

问题最初发布在那里有一些进展:




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:

这篇关于如何将GWT连接到CometD / Bayeux事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆