• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can this possible?

 
Ranch Hand
Posts: 630
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 219
Firefox Browser Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic