This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes How to communicate between servlets which are residing in two different servers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to communicate between servlets which are residing in two different servers " Watch "How to communicate between servlets which are residing in two different servers " New topic
Author

How to communicate between servlets which are residing in two different servers

hafz Khan
Greenhorn

Joined: Jul 04, 2010
Posts: 16
Hi All,

Could any help me out with an example for communicating between servlets which are residing in two different servers.

Thanks in Advance,
Hfz
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

Your best bet would be to establish a web service.

If you don't want to do all that, simply post to the other servlet's URL.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
hafz Khan
Greenhorn

Joined: Jul 04, 2010
Posts: 16
Hi,

Sorry.. As I am new to the servlet programming.. could you please provide a simple example so that it would be really helpfull for me understand the concept.

Thank You,
Hfz.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

http://developers.sun.com/mobility/midp/ttips/HTTPPost/
hafz Khan
Greenhorn

Joined: Jul 04, 2010
Posts: 16
Thank You Bear Bibeault.
Will refer the link sent by you and if any doubts on that will get back to you for further clarification.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to communicate between servlets which are residing in two different servers