开发者

GWT Stock Watcher - Polling not Push?

In the GWT Stock Watch tutorial it seems to be polling the server every 4 seconds for new data. Is this the standard way GWT works or is it p开发者_StackOverflow中文版ossible to use a push type technology so that when new events are raised on the server the client code gets called?


This is the standard way GWT works. The incubator has a page outlining how you can achieve push with GWT.


The concept of server push (aka COMET) can be achieved using GWT. You should check out Stream Hub. It is closed source for the time being but I believe it is active. I hope they open source it :).

GWT example

http://www.stream-hub.com/demo/gwt-comet-stock-table/gwt-stock-table-demo.html

Main site

http://www.stream-hub.com/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜