File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Servlets delefgating to servlets (Design question) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlets delefgating to servlets (Design question)" Watch "Servlets delefgating to servlets (Design question)" New topic
Author

Servlets delefgating to servlets (Design question)

Tonny Tssagovic
Ranch Hand

Joined: Dec 30, 2003
Posts: 226
Hello ranchers,
I had an argument with my friend about a design they chose. They have a "centralized" servlet that receives requests and just delegates them to the other servlets. Now the other servlets do the processing and return. He is saying that this would allow "container independent" load balancing, in case we want to distribute the load via this servlet. I told him that this is far from being the way u do load balancing (after all, u can just toggle some XML fields, and let the container do it for u automatically, no need to change the code...) and I told him that this is just adding overhead (calling a servlet instead of a simple POJO for the business logic/we r not using EJBs). Now assuming we don't take in consideration that the business logic should be separated from the "servlet" related code, or we just assume that the second layer servlets (those that process the requests dispatched to them by the MAIN controller servlet) also delegate the call to POJOs for business logic; IS there any advantage of Having this kinda of chain of servlets ? (not filters) ?? Do u guys have any good/bad arguments for/against it?
Please advice us, we really need other people's view!
Thanks for your time
Tonny Tssagovic
Ranch Hand

Joined: Dec 30, 2003
Posts: 226
Heh, No replies
Come on guys, Shoot, just any thoguhts :roll:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlets delefgating to servlets (Design question)
 
Similar Threads
WHY EJB??
servlet's constructor
Chapter 2 (HFSJ) notes , may be useful for anyone
Please help me to resolve this Design Pattern question
JSP-Bean question