6. Java EE Patterns.pdf - ADV.JAVA Means DURGA SIR Page 1...

This preview shows page 1 - 4 out of 10 pages.

ADV.JAVA Means DURGA SIR Page 1 Plot No : 202, IInd Floor ,HUDA Maitrivanam,Ameerpet, Hyd-5000038 .
Image of page 1

Subscribe to view the full document.

ADV.JAVA Means DURGA SIR Page 2 Plot No : 202, IInd Floor ,HUDA Maitrivanam,Ameerpet, Hyd-5000038 . Unit-6: Java EE Patterns Objectives 1.Given a scenario description with a list of issues, select a pattern that would solve the issues. The list of patterns you must know are: Intercepting Filter, Model-View-Controller, Front Controller, Service Locator, Business Delegate, and Transfer Object. 2. Match design patterns with statements describing potential benefits that accrue from the use of the pattern, for any of the following patterns: Intercepting Filter, Model-View-Controller, Front Controller, Service Locator, Business Delegate, and Transfer Object. Q1. Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate with the database. The Squeaky business team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the new system. Which pattern can the developer use to solve this problem? A. Transfer Object B. Service Locator C. Intercepting Filter D. Business Delegate Answer: D Q2. A developer is designing a web application that must verify for each request:The originating request is from a trusted network. The client has a valid session. The client has been authenticated. Which design pattern provides a solution in this situation?
Image of page 2