Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Advantages of Main Servlet Controller

 
Ramesh Talwar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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: http://java.sun.com/blueprints/patterns/j2ee_patterns/front_controller/index.html
regards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic