java - Check if Offline with GWT -
java - Check if Offline with GWT -
i'm using offline.js integrated gwt check if app offline (i.e. server down).
the library works fine , problem have how test in dev mode, if manually shut downwards jetty server, app goes down. unlike when deployed tomcat or jboss. there way test in dev mode?
instead of using custom js library why not add together client heartbeat checker? rpc phone call service homecoming invocationexception can check creating custom asynccallback abstract class. so:
public abstract class responsiveasynccallback<t> implements asynccallback<t> { public void onfailure(throwable caught) { if(caught instanceof invocationexception) { // failed connect server // here, maybe create event } } }
now need create sure phone call super.onfailure() if extending functionality in future. work lot improve think.
java gwt
Comments
Post a Comment