Assume that I've following GWT service:
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
String greetServer(String name) throws IllegalArgumentException;
}
I build & deploy client code on myserver1.com
, but my servlets are located on myserver2.com
(eg. http://myserver2.com/gwt-module-base/greet
) & server1 allows cross domain resource sharing for server2.
Now, here is the question: How can I send gwt-rpc calls for greet service to myserver2.com
instead of myserver1.com
?