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/
精彩评论