| Author |
Can this possible?
|
Mandar Khire
Ranch Hand
Joined: Sep 11, 2007
Posts: 482
|
|
If there is 2/3 servlet in web application, By request dispatcher we can send data 1 servlet to other. In this case if we keep each servlet in different computer(means we add 2/3 separate web servers together)(because we add URL in servlet) & run the all program together. Is it possible? my question is is it possible that 3 friends write servlet there own computer which connected in LAN, each having same or separate web container, they they can run 1 project containing 3 servlet, from separate computer which is work as client computer? If yes then for each there should be same Non-commercial web containers or different also allow, ie if one server work with Apache Tomcat at same time other in Jetty or some thing like that. I read following link [Servlet][List of Servlet containers
|
Millions saw the apple fall, but Newton asked why.
If you understand, say "understand". If you don't understand, say "don't understand". But if you understand and say "don't understand". How do I understand that you understand? Understand!
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56191
|
|
No. You cannot use the request dispatcher to forward a request to another container. If you want disparate servers to provide services, that's perhaps the venue of web services.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Hendy Setyo Mulyo
Ranch Hand
Joined: Dec 01, 2004
Posts: 219
|
|
|
I believe you can share the session for the same type of web container in different server by using load balancing technique. That is the case when you encounter a heavy load traffic to your system. If you want to use separate server as provider service, perhaps you can use WebServices, Stateless Session Bean or other RPC-based technologies. Please correct me if I am wrong.
|
Hendy Setyo Mulyo
SCJP 1.4 (95%), SCWCD 1.4 (94%)
|
 |
 |
|
|
subject: Can this possible?
|
|
|