单选题A developer is designing a web application which extensively uses EJBs and JMS. The developer finds thatthere is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further,because of the complexity, there are numerous e

题目
单选题
A developer is designing a web application which extensively uses EJBs and JMS. The developer finds thatthere is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further,because of the complexity, there are numerous errors in the code. Which J2EE design pattern provides asolution for this problem?()
A

Command

B

Transfer Object

C

Service Locator

D

Session Facade

E

Business Delegate


相似考题
参考答案和解析
正确答案: C
解析: 暂无解析
更多“单选题A developer is designing a web application which extensively uses EJBs and JMS. The developer finds thatthere is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further,because of the complexity, there are numerous e”相关问题
  • 第1题:

    A developer is designing a web application which extensively uses EJBs and JMS. The developer finds thatthere is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further,because of the complexity, there are numerous errors in the code. Which J2EE design pattern provides asolution for this problem?()

    • A、Command
    • B、Transfer Object
    • C、Service Locator
    • D、Session Facade
    • E、Business Delegate

    正确答案:C

  • 第2题:

    A developer is designing a multi-tier web application and discovers a need to log each incoming clientrequest. Which two patterns, taken independently, provide a solution for this problem?()

    • A、Transfer Object
    • B、Service Locator
    • C、Front Controller
    • D、Intercepting Filter
    • E、Business Delegate

    正确答案:C,D

  • 第3题:

    A developer is designing a web application that makes many fine-grained remote data requests for each client request. During testing, the developer discovers that the volume of remote requests significantly degrades performance of the application. Which design pattern provides a solution for this problem?()

    • A、 Flyweight
    • B、 Transfer Object
    • C、 Service Locator
    • D、 Dispatcher View
    • E、 Business Delegate
    • F、 Model-View-Controller

    正确答案:B

  • 第4题:

    Which the statement is true about web container session management()?

    • A、 Access to session-scoped attributes is guaranteed to be thread-safe by the web container.
    • B、 To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.
    • C、 If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.
    • D、 The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.

    正确答案:C

  • 第5题:

    A developer is designing the presentation tier for a web application which requires a centralized requesthandling to complete common processing required by each request. Which design pattern provides asolution to this problem?()

    • A、Remote Proxy
    • B、Front Controller
    • C、Service Activator
    • D、Intercepting Filter
    • E、Business Delegate

    正确答案:B

  • 第6题:

    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、 Session Façade
    • B、 Business Delegate
    • C、 Data Access Object
    • D、 Model-View-Controller
    • E、 Chain of Responsibility

    正确答案:D

  • 第7题:

    多选题
    A developer is designing a multi-tier web application and discovers a need to log each incoming clientrequest. Which two patterns, taken independently, provide a solution for this problem?()
    A

    Transfer Object

    B

    Service Locator

    C

    Front Controller

    D

    Intercepting Filter

    E

    Business Delegate


    正确答案: C,B
    解析: 暂无解析

  • 第8题:

    单选题
    A developer is designing a multi-tier web application and discovers a need to hide the details of establishingand maintaining remote communications from the client. In addition, because the business and resourcetiers are distributed, the application needs to minimize the inter-tier network traffic related to servicing clientrequests. Which design patterns, working together, address these issues?()
    A

    Front Controller and Transfer Object

    B

    Front Controller and Service Locator

    C

    Business Delegate and Transfer Object

    D

    Business Delegate and Intercepting Filter


    正确答案: A
    解析: 暂无解析

  • 第9题:

    单选题
    A developer is designing a web application which extensively uses EJBs and JMS. The developer finds thatthere is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further,because of the complexity, there are numerous errors in the code. Which J2EE design pattern provides asolution for this problem?()
    A

    Command

    B

    Transfer Object

    C

    Service Locator

    D

    Session Facade

    E

    Business Delegate


    正确答案: C
    解析: 暂无解析

  • 第10题:

    单选题
    A developer is designing the presentation tier for a web application which requires a centralized requesthandling to complete common processing required by each request. Which design pattern provides asolution to this problem?()
    A

    Remote Proxy

    B

    Front Controller

    C

    Service Activator

    D

    Intercepting Filter

    E

    Business Delegate


    正确答案: B
    解析: 暂无解析

  • 第11题:

    单选题
    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

     Session Façade

    B

     Business Delegate

    C

     Data Access Object

    D

     Model-View-Controller

    E

     Chain of Responsibility


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    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


    正确答案: B
    解析: 暂无解析

  • 第13题:

    The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. Whilereviewing the application, a developer realizes that in multiple places within the current application, nearlyduplicate code exists that finds enterprise beans. Which pattern should be used to eliminate this duplicatecode?()

    • A、Transfer Object
    • B、Front Controller
    • C、Service Locator
    • D、Intercepting Filter
    • E、Business Delegate
    • F、Model-View-Controller

    正确答案:C

  • 第14题:

    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 designpattern provides a solution for this problem?()

    • A、Session Facade
    • B、Business Delegate
    • C、Data Access Object
    • D、Model-View-Controller
    • E、Chain of Responsibility

    正确答案:D

  • 第15题:

    A developer is designing a web application that makes many fine-grained remote data requests for eachclient request. During testing, the developer discovers that the volume of remote requests significantlydegrades performance of the application. Which design pattern provides a solution for this problem?()

    • A、Flyweight
    • B、Transfer Object
    • C、Service Locator
    • D、Dispatcher View
    • E、Business Delegate
    • F、Model-View-Controller

    正确答案:B

  • 第16题:

    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 Squeakybusiness 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 newsystem. Which pattern can the developer use to solve this problem?()

    • A、Transfer Object
    • B、Service Locator
    • C、Intercepting Filter
    • D、Business Delegate

    正确答案:D

  • 第17题:

    A Company.com developer has created a web application that includes a servlet for each use case in the application. These servlets have become rather difficult to maintain because the request processing methods have become very large. There is also common processing code in many servlets because these use cases are very similar.  Which two design patterns can be used together to refactor and simplify this web application? ()

    • A、 Proxy
    • B、 View Helper
    • C、 Front Controller
    • D、 Session Façade
    • E、 Business Delegate
    • F、 Model-View-Controller

    正确答案:C,F

  • 第18题:

    单选题
    A developer is designing a web application that makes many fine-grained remote data requests for each client request. During testing, the developer discovers that the volume of remote requests significantly degrades performance of the application. Which design pattern provides a solution for this problem?()
    A

     Flyweight

    B

     Transfer Object

    C

     Service Locator

    D

     Dispatcher View

    E

     Business Delegate

    F

     Model-View-Controller


    正确答案: C
    解析: 暂无解析

  • 第19题:

    单选题
    The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. Whilereviewing the application, a developer realizes that in multiple places within the current application, nearlyduplicate code exists that finds enterprise beans. Which pattern should be used to eliminate this duplicatecode?()
    A

    Transfer Object

    B

    Front Controller

    C

    Service Locator

    D

    Intercepting Filter

    E

    Business Delegate

    F

    Model-View-Controller


    正确答案: D
    解析: 暂无解析

  • 第20题:

    单选题
    Which the statement is true about web container session management()?
    A

     Access to session-scoped attributes is guaranteed to be thread-safe by the web container.

    B

     To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.

    C

     If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.

    D

     The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.


    正确答案: A
    解析: 暂无解析

  • 第21题:

    单选题
    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 designpattern provides a solution for this problem?()
    A

    Session Facade

    B

    Business Delegate

    C

    Data Access Object

    D

    Model-View-Controller

    E

    Chain of Responsibility


    正确答案: C
    解析: 暂无解析

  • 第22题:

    单选题
    A developer is designing a web application that makes many fine-grained remote data requests for eachclient request. During testing, the developer discovers that the volume of remote requests significantlydegrades performance of the application. Which design pattern provides a solution for this problem?()
    A

    Flyweight

    B

    Transfer Object

    C

    Service Locator

    D

    Dispatcher View

    E

    Business Delegate

    F

    Model-View-Controller


    正确答案: B
    解析: 暂无解析

  • 第23题:

    单选题
    A developer is designing a web application which extensively uses EJBs and JMS.  The developer finds that there is a lot of duplicated code to build the JNDI contexts to access the beans and queues. Further, because of the complexity, there are numerous errors in the code.  Which J2EE design pattern provides a solution for this problem?()
    A

     Command

    B

     Transfer object

    C

     Service locator

    D

     Session Façade

    E

     Business delegate

    F

     Data access object


    正确答案: E
    解析: 暂无解析

  • 第24题:

    单选题
    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 Squeakybusiness 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 newsystem. Which pattern can the developer use to solve this problem?()
    A

    Transfer Object

    B

    Service Locator

    C

    Intercepting Filter

    D

    Business Delegate


    正确答案: C
    解析: 暂无解析