• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Calling RPC present in different server

 
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
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
 
Onion rings are vegetable donuts. Taste this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic