SCWCD(310-083)

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

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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

正确答案:D

第2题:

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

第3题:

Given:And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATHenvironment 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题:

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

第5题:

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

第6题:

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

正确答案:C

第7题:

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

第8题:

A 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 havebecome very large. There is also common processing code in many servlets because these use cases arevery 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 Facade
  • E、Business Delegate
  • F、Model-View-Controller

正确答案:C,F

第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

正确答案:C

第10题:

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

更多相关问题