I usually do three things:

First, I use a subclass of AsyncCallback to catch the most common
exceptions: IncompatibleRemoteServiceException, StatusCodeException and
InvocationException. When I catch then
IncompatibleRemoteServiceException I will ask the user if he wants to
reload the application.

Second, whenever I deploy an application, all sessions are invalidated.
The next RPC call will catch an exception from the server because the
session ended. When my AsyncCallback catches this exception will warn
the user to reload the application.

Third, the first call to the server always returns a version. I compare
this version with the client version. If the versions are different
means that the client code is old and needs to be reload.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to