aspose file tools*
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 Spring in Action this week in the Spring 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: 61434
    
  67

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: 61434
    
  67

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