Following is a question from whiz labs where I did not agree with the answer given. Hoping to hear your thoughts. A system consists of PL/SQL stored procedures and JSP/Tomcat cluster of web servers and an Oracle database. Every time there is a need for code change, developers run into problems. What is recommended in this situation ? Out of all the given choices, one is to move PL/SQL business logic into Servlets and the other is to separate the business logic by using an App server. The exam says moving to an App server is right because it is best to move the logic to app server and enterprise beans. And another reason is it already has JSP and Tomcat and so App server will integrate well in to this solution. I would actually move the logic into servlets as there is no mention of transactions or sessions. And as the system already has JSP and Tomcat, Servlets would fit better than buying extra hardware for app server and extra money for licenses and increased over head. Any justifications for either of the answers ? Cheers, Ram.
I think the main point of this question is maintenance of code. To reduce the code change, you shoud seperate business logic flow with other parts, thus, Application server with Enterprise Bean is best solution.