• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can this possible?

 
Mandar Khire
Ranch Hand
Posts: 567
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Hendy Setyo Mulyo
Ranch Hand
Posts: 219
Firefox Browser Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic