File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 61106
    
  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: 61106
    
  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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to communicate between servlets which are residing in two different servers