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

题目
单选题
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
解析: 暂无解析
更多“单选题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 enterpri”相关问题
  • 第1题:

    Company.com has a six-node concurrent resource group with an application that is accessed by  a web connection to the cluster nodes. How is the workload moved to another cluster node during a node failure?()  

    • A、 The concurrent application must control the web interface through application monitoring.
    • B、 A second resource group will be required to move the web application and IP label to a new node during a node failure.
    • C、 The concurrent resource group can support multiple IP labels through IP aliasing so all IP labels are defined in the concurrent resource group.
    • D、 The dynamic node priority facility in HACMP will relocate the web application and the IP label,if it is correctly defined in the application start and stop script.

    正确答案:B

  • 第2题:

    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

  • 第3题:

    package com.company.application;  public class MainClass {  public static void main(String[] args) { }  }  And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to “.“ (current directory).  Which two java commands entered at the command line will run MainClass?()

    • A、 java MainClass if run from the /apps directory
    • B、 java com.company.application.MainClass if run from the /apps directory
    • C、 java -classpath /apps com.company.application.MainClass if run from any directory
    • D、 java -classpath . MainClass if run from the /apps/com/company/application directory
    • E、 java -classpath /apps/com/company/application:. MainClass if run from the /apps directory
    • F、 java com.company.application.MainClass if run from the /apps/com/company/application directory

    正确答案:B,C

  • 第4题:

    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

  • 第5题:

    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

  • 第6题:

    You manage a server that runs Windows Server 2008. The server has the Web Server (IIS) role installed. The Web developer at your company creates a new Web site that runs an ASP.NET 3.0 Web application.  The ASP.NET Web application must run under a security context that is separate from any other ASP.NET application on the Web server.  You create a local user account and grant account rights and permissions to run the ASP.NET Web application.  You need to configure authentication for the new Web site to support the Web application. What should you do?()

    • A、Configure the Windows Authentication setting to Enabled.
    • B、Configure the Forms Authentication setting to Enabled by using all the default settings.
    • C、Configure the ASP.NET State service to log on to the new local user account by using the Services console.
    • D、Configure the ASP.NET Impersonation setting to Enabled. Edit the ASP.NET Impersonation setting by specifying the new local user account.

    正确答案:D

  • 第7题:

    单选题
    You manage a server that runs Windows Server 2008. The server has the Web Server (IIS) role installed. The Web developer at your company creates a new Web site that runs an ASP.NET 3.0 Web application.  The ASP.NET Web application must run under a security context that is separate from any other ASP.NET application on the Web server.  You create a local user account and grant account rights and permissions to run the ASP.NET Web application.  You need to configure authentication for the new Web site to support the Web application. What should you do?()
    A

    Configure the Windows Authentication setting to Enabled.

    B

    Configure the Forms Authentication setting to Enabled by using all the default settings.

    C

    Configure the ASP.NET State service to log on to the new local user account by using the Services console.

    D

    Configure the ASP.NET Impersonation setting to Enabled. Edit the ASP.NET Impersonation setting by specifying the new local user account.


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

  • 第8题:

    多选题
    Given: And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATH environment variable is set to "." (current directory). Which two java commands entered at the commandline will run MainClass?()
    A

    java MainClass if run from the /apps directory

    B

    java com.company.application.MainClass if run from the /apps directory

    C

    java -classpath /apps com.company.application.MainClass if run from any directory

    D

    java -classpath . MainClass if run from the /apps/com/company/application directory

    E

    java -classpath /apps/com/company/application:. MainClass if run from the /apps directory


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

  • 第9题:

    单选题
    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
    解析: 暂无解析

  • 第10题:

    单选题
    What is the new feature within 8.5.1 that allows a developer to remove malicious code from HTML?()
    A

    Java Server Faces (JSF)

    B

    Representational State Transfer (REST)

    C

    Active Content Filtering (ACF)

    D

    Notes Application Scrubber


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

  • 第11题:

    单选题
    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
    解析: 暂无解析

  • 第12题:

    单选题
    Company.com has decided to use the FUBAR Application Server to host their web application. Unfortunately, the FUBAR Application Server uses the server machine’s file system for its JNDI namespace. Every JNDI lookup performed in the web application is translated into a file 1/0 operation, which results in very poor performance.  Which J2EE pattern can help with this performance issue?()
    A

     Transfer Object

    B

     Service Locator

    C

     Intercepting Filter

    D

     Model-View-Controller


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

  • 第13题:

    What is the new feature within 8.5.1 that allows a developer to remove malicious code from HTML?()

    • A、Java Server Faces (JSF)
    • B、Representational State Transfer (REST)
    • C、Active Content Filtering (ACF)
    • D、Notes Application Scrubber

    正确答案:C

  • 第14题:

    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

  • 第15题:

    Company.com has decided to use the FUBAR Application Server to host their web application. Unfortunately, the FUBAR Application Server uses the server machine’s file system for its JNDI namespace. Every JNDI lookup performed in the web application is translated into a file 1/0 operation, which results in very poor performance.  Which J2EE pattern can help with this performance issue?()

    • A、 Transfer Object
    • B、 Service Locator
    • C、 Intercepting Filter
    • D、 Model-View-Controller

    正确答案:B

  • 第16题:

    Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application.  In which object can the data that A shares with B be stored?()

    • A、 HttpSession
    • B、 ServletConfig
    • C、 ServletContext
    • D、 HttpServletRequest
    • E、 HttpServletResponse

    正确答案:D

  • 第17题:

    You work as an application developer at Certkiller .com. You have recently created an application domain for Certkiller .com. A few weeks later you are asked to retrieve information from this application domain, which is the current application domain. What can you do to achieve this objective?()

    • A、 Use the following code: AppDomain appInfo = ApplicationDomain.Current;
    • B、 Use the following code: AppDomain appInfo = AppDomain.CurrentDomain ();
    • C、 Use the following code: AppDomain appInfo = Thread.GetDomain ();
    • D、 Use the following code: AppDomain appInfo = MainThread.GetDomain ();

    正确答案:B,C

  • 第18题:

    单选题
    You are developing an application that dynamically loads assemblies from an application directory. You need to write a code segment that loads an assembly named Company1.dll into the current application domain. Which code segment should you use?()
    A

    A

    B

    B

    C

    C

    D

    D


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

  • 第19题:

    单选题
    Company.com has a six-node concurrent resource group with an application that is accessed by  a web connection to the cluster nodes. How is the workload moved to another cluster node during a node failure?()
    A

     The concurrent application must control the web interface through application monitoring.

    B

     A second resource group will be required to move the web application and IP label to a new node during a node failure.

    C

     The concurrent resource group can support multiple IP labels through IP aliasing so all IP labels are defined in the concurrent resource group.

    D

     The dynamic node priority facility in HACMP will relocate the web application and the IP label,if it is correctly defined in the application start and stop script.


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

  • 第20题:

    单选题
    Your company has an internal Web application that uses a self-signed SSL certificate.  The company has an internal certification authority (CA) with autoenrollment.When users attempt to start the Web application, Internet Explorer displays an error message that recommends closing the Web page rather than continuing to the application.    You need to ensure that Internet Explorer does not display the error message.   What should you do?()
    A

    Issue a certificate from the internal CA and install it on the application server

    B

    Install the Web application’s certificate into the computer store on each client computer

    C

    Install the Web application’s certificate into the personal store on each client computer. Add the application’s URL to the Trusted Sites zone in Internet Explorer

    D

    Purchase a commercial certificate and install it on the internal CA


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

  • 第21题:

    单选题
    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
    解析: 暂无解析

  • 第22题:

    单选题
    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
    解析: 暂无解析

  • 第23题:

    单选题
    Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application.  In which object can the data that A shares with B be stored?()
    A

     HttpSession

    B

     ServletConfig

    C

     ServletContext

    D

     HttpServletRequest

    E

     HttpServletResponse


    正确答案: 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
    解析: 暂无解析