Hi,
 
Following diagram illustrate my application. In my application a client send his/her tax number to servlet1 by using a html form. Servlet1 forward this parameter (tax number) servlet2 and servlet3 which reside in different computer. Servlet2 and servlet3 will connect their databases (RDBMS_2 and RDBMS_3) , execute query (by using tax number that servlet1 send). Then servlet1 will receive responses from servlet2 and servlet3 and write them a jsp file using a JavaBean and send this jsp file back to client.
 
To achive this application, I want to communicate servlets. So, I will have developed distributed application using java servlet technology. But I don't know how can I do servlet to servlet communication. I need documentation and samples code.
 
Thanks...


                                     
+---------+  HTTP  +---------+       +----------+      +--------+
| Client  | <----> |Servlet1 | <---> | Servlet2 |<---> | RDBMS2 |
+---------+        +---------+  |    +----------+      +--------+
                        |       |

                        |       |    +----------+      +--------+
                        |       +--> | Servlet3 |<---> | RDBMS3 |
                        |            +----------+      +--------+
                        |       
                        |           
                        |       
                   /========\   
                   |JavaBean|   
                   \========/  

Reply via email to