Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet to servlet communication

 
Dustin Whitte
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the best mode of communicating between two servlets on different web servers/physical boxes?
I need to pass parameters to a different application's servlet and receive data back.
thanks for any help,
-D
 
danny liu
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my point of view, servlet is not for business processing purpose.
The better choice is wrappering the functionalities into a web service and then access it from servlet.

Dan
 
Jeffrey Spaulding
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As always, it depends.
We use XML-RPC (see http://ws.apache.org/xmlrpc/).
Seems to work nicely without too much overhead.
It depends on the complexity of the objects you want
to put on the wire.
J.
 
Dustin Whitte
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your response I was not aware of the XML-RPC project. It might be a good fit for our project.
-D
 
Gowrishankar Mudaliar
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried a url connection with the required parameters?
That should work for some scenarios....
Gowrishankar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic