Hi Ranchers,
I just encountered a question with regards to
J2EE patterns:
Here is the question:
"ABC, Inc. wanted to create a web application very quickly to demonstrate to their clients. For a fast turnaround of the application, the developers created some
JSP pages that communicated directly with the database. Once the demo was over, ABC, Inc. hired a separate company to model their business domain and to develop business components. The JSP developers were asked to adapt their JSP pages to the third party developed business components.Which of the following patterns should the JSP developers use?"
My answer was "MVC".
What triggered me to answer MVC was this line
"developers created some JSP pages that communicated directly with the database".
I thought separating the View from directly communicating with the database,
and let the Model handle it would have solve the problem.
But I was wrong. Answer was "Business Delegate".
Part of the Explanation was:
"This patterns suit the situation because the JSP developers can utilize a business delegate to perform business tasks instead of going to the DB. The business delegate can then integrate with the business components developed by third party."
Question is , what part of the scenario did MVC did not achieve?
Thanks in Advance!