File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Can this possible? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can this possible?" Watch "Can this possible?" New topic

Can this possible?

Mandar Khire
Ranch Hand

Joined: Sep 11, 2007
Posts: 485
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

Joined: Jan 10, 2002
Posts: 60050

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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%)
I agree. Here's the link:
subject: Can this possible?
Similar Threads
clustering servlets
want to clarify some of my understandings on BDM
****ServletContext and WebApplication confusion****
Is Bytecode is under system programming language?
coding clustering algorithms in java