This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

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
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!