• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calling RPC present in different server

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic