java - Why do you need synchronous interface for GWT RPC? -


i wondering why need define synchonous interface when using gwt rpc calls asynchornous (http://www.gwtproject.org/doc/latest/devguideservercommunication.html)?

i not see synchornous interface used!

i.e. why can't implement synchonous interface in our service implementation class?

from documentation:

http://www.gwtproject.org/doc/latest/devguideservercommunication.html#devguidecreatingservices

this synchronous interface definitive version of service's specification. implementation of service on server-side must extend remoteserviceservlet , implement service interface.

package com.example.foo.server;  import com.google.gwt.user.server.rpc.remoteserviceservlet; import com.example.client.myservice;   public class myserviceimpl extends remoteserviceservlet implements     myservice {    public string mymethod(string s) {     // interesting 's' here on server.     return s;   } } 

tip: not possible call version of rpc directly client. must create asynchronous


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -