A developer is designing the presentation tier for a web application which requires a centralized request handling to complete common processing required by each
request. Which design pattern provides a solution to this problem?
A developer is designing a web application that must support multiple interfaces, including: an XML web service for B2B HTML for web-based clients WML for
wireless customers .Which design pattern provides a solution for this problem?
A developer has created a special servlet that is responsible for generating XML content that is sent to a data warehousing subsystem. This subsystem uses HTTP
to request these large data files, which are compressed by the servlet to save internal network bandwidth. The developer has received a request from management
to create several more of these data warehousing servlets. The developer is about to copy and paste the compression code into each new servlet. Which design
pattern can consolidate this compression code to be used by all of the data warehousing servlets?
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 developer is designing a multi-tier web application and discovers a need to hide the details of establishing and maintaining remote communications from the
client. In addition, the application needs to find, in a transparent manner, the heterogeneous business components used to service the client's requests. Which
design patterns, working together, address these issues?
A developer is designing a multi-tier web application and discovers a need to hide the details of establishing and maintaining remote communications from the
client. In addition, because the business and resource tiers are distributed, the application needs to minimize the inter-tier network traffic related to servicing client
requests. Which design patterns, working together, address these issues?
The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. While reviewing the application, a developer realizes that in
multiple places within the current application,nearly duplicate code exists that finds enterprise beans.Which pattern should be used to eliminate this duplicate code?
A web component accesses a local EJB session bean with a component interface of
com.example.Account with a home interface of com.example.AccountHome and a JNDI reference of ejb/Account.Which makes the local EJB component
accessible to the web components in the web application deployment descriptor?