File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Advantages of Main Servlet Controller Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Advantages of Main Servlet Controller" Watch "Advantages of Main Servlet Controller" New topic

Advantages of Main Servlet Controller

Ramesh Talwar

Joined: Jun 20, 2001
Posts: 16
What are the advantages of having single controller(Servlet) to handle all client requests and forwarding them to corresponding handlers.Will it affect performance as all the request ar forwarded to single controller making it too heavy.
Thanks in advance
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Remember that a new thread is created on the service method of your servlet to each new client, about the motivations and drawbacks of this pattern take a look at:
I agree. Here's the link:
subject: Advantages of Main Servlet Controller
It's not a secret anymore!