• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling RPC present in different server

 
Satyanarayana Raju Sagi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi

Can we call a gwt rpc which is not part of the current application?

The scenario is that i had a GWT application say APP1 running on Tomcat Server. And i had one GWT application say APP2 running on JBOSS server.
Now let us say that we had an rpc call say GetDataFromServer.getSpecificData(userId) in APP2. (GetDataFromServer is the synchronous interface and getSpecificData() is the method.

Now can i call this getSpecificData() rpc from APP1?

Thanks in advance.
Raju
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

If you insist on using RPC to switch calls to a different server, then I think you are lucked out. However, GWT does provide you with client side HTTP APIs. Check out http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideHttpRequests

Considering the same origin policy restrictions, I personally would use the server side to switch calls.
Client->originating server->different server and reverse route back.

You might also want to check out http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/FAQ_SOP
 
Satyanarayana Raju Sagi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Maneesh,

Thank you for the info.
I had already taken a glance at the HTTP Requests of the GWT.
I am checking if there is any other alternative solution.

Satyanarayana Raju S
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic