Hi,
How do you implement servlet-servlet communication when the servlets are not local to the server.
Thanks in advance.
Preeti
-
Servlet-Servlet Communication (3 messages)
- Posted by: Preeti Prat
- Posted on: December 20 2000 16:28 EST
Threaded Messages (3)
- Servlet-Servlet Communication by Robert Baty on December 20 2000 17:04 EST
- Servlet-Servlet Communication by Preeti Prat on December 20 2000 20:24 EST
- Servlet-Servlet Communication by Prasath Balakrishnan on December 21 2000 10:50 EST
- Servlet-Servlet Communication by Preeti Prat on December 20 2000 20:24 EST
-
Servlet-Servlet Communication[ Go to top ]
- Posted by: Robert Baty
- Posted on: December 20 2000 17:04 EST
- in response to Preeti Prat
The easiest way to do that is use HTTP. One servlet posts directly to the other servlet. Communication can be as basic as putting a query string on the end of the URL to putting an XML formatted file into the servlets request object, then the other servlet parses it. Using HTTP means you don't have to provide for any RMI or any other distributed services which require some overhead.
rjb -
Servlet-Servlet Communication[ Go to top ]
- Posted by: Preeti Prat
- Posted on: December 20 2000 20:24 EST
- in response to Robert Baty
Can you send me sample code for this.My email Id is preeti_prat at yahoo dot com
Thanks in advance.
Preeti -
Servlet-Servlet Communication[ Go to top ]
- Posted by: Prasath Balakrishnan
- Posted on: December 21 2000 22:50 EST
- in response to Preeti Prat
From what i understood was when you want to communicate between servlets located across 2 different servers.
Take the results of the servlets as a XML file , pass this input into the other servlet on the different server, take the results out.This can be one of the possiblity.Please let me your exact problem.
Prasath