You have taken over an old web application that contains a servlet for each use case. These servlets have become difficult to maintain because the service methods have grown big. Also,since the use cases are similar, lot of code has been repeated accross the servlets. Which patterns can you apply in this situation?
a Business Delegate b Transfer Object c Front Controller d Session Facade e Model View Controller
the answer is given as a and c, but i feel it is c and e. can anyone clarify?
The correct answer is Business Delegate and Front Controller.
Business Delegate-: Because all the look up code can be centralized in the Business Delegate/Service Locator.
Front Controler: Can be used for Centralized control and delegation.
MVC is not the best choice because its more associated with different types of views for the same controller and underlying model components. Best example can be an application which may have a Java Swing Client and Java Web Client.