Which two elements of the Java Enterprise Application Archive are required?()A、EJB Archive  B、Deployment DescriptorC、META-INF sub directoryD、Resource Adapter archiveE、Java library

题目

Which two elements of the Java Enterprise Application Archive are required?()

  • A、EJB Archive  
  • B、Deployment Descriptor
  • C、META-INF sub directory
  • D、Resource Adapter archive
  • E、Java library

相似考题
更多“Which two elements of the Java Enterprise Application Archive are required?()A、EJB Archive  B、Deployment DescriptorC、META-INF sub directoryD、Resource Adapter archiveE、Java library”相关问题
  • 第1题:

    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

  • 第2题:

    Which the two about WAR files are true?()

    • A、 WAR files must be located in the web application library directory.
    • B、 WAR files must contain the web application deployment descriptor.
    • C、 WAR files must be created by using archive tools to designed specifically for that purpose. 
    • D、 The web container must serve the content of any META-INF directory located in a WAR file.
    • E、 The web container must allow access to resources in JARs in the web application library directory

    正确答案:B,E

  • 第3题:

    Which three web application deployment descriptor elements allow web components to gain references toresources or EJB components?()

    • A、ejb-ref
    • B、jdbc-ref
    • C、servlet-ref
    • D、resource-ref
    • E、javamail-ref
    • F、resource-env-ref

    正确答案:A,D,F

  • 第4题:

    You deployed a Java EE Shared Library and want to use it from an application that is also deployed on the same cluster.    Which two manifest attributes must be specified at a minimum with corresponding values in the deployment descriptor of the application that requires?()

    • A、Implementation-Version
    • B、Specification-Version
    • C、Extension-Name  
    • D、Specification-Vendor
    • E、Implementation-Vendor

    正确答案:A,C

  • 第5题:

    What are the two proper locations of deployment descriptors files inside of archives deployed to WebLogic?()

    • A、the WEB-INF subdirectory for a WAR file
    • B、the META-INF subdirectory for an EAR file, or EJB-JAR
    • C、the DD-INF subdirectory
    • D、the root of archive
    • E、any searchable location

    正确答案:A,B

  • 第6题:

    A customer has a development environment that uses the auto-deployment feature. The customer  claims the application is not redeployed even if the new version is copied to an application  subdirectory. Which two parameters of the configuration should you check?()

    • A、Check if archive file in the compressed version has a new REDEPLOY file.  
    • B、If server was started in the Development Mode. Auto-deployment is not supported in production  mode.  
    • C、If the application includes an EJB 3 module. Auto-deployment is not supported for EJBs.
    • D、You change JVM from HotSpot to JRockit. Auto-deployment is not supported in HotSpot auto  deployment.  
    • E、If the domain is a single-server domain. Auto-deployment is not supported in multiserver  domains.

    正确答案:B,E

  • 第7题:

    多选题
    Which the two about WAR files are true?()
    A

    WAR files must be located in the web application library directory.

    B

    WAR files must contain the web application deployment descriptor.

    C

    WAR files must be created by using archive tools to designed specifically for that purpose.

    D

    The web container must serve the content of any META-INF directory located in a WAR file.

    E

    The web container must allow access to resources in JARs in the web application library directory


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

  • 第8题:

    多选题
    In which two locations can library dependencies be defined for a web application? ()
    A

    the web application deployment descriptor

    B

    the /META-INF/dependencies.xml file

    C

    the /META-INF/MANIFEST.MF manifest file

    D

    the /META-INF/MANIFEST.MF manifest of a JAR in the web application classpath


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

  • 第9题:

    多选题
    Which two elements of the Java Enterprise Application Archive are required?()
    A

    EJB Archive

    B

    Deployment Descriptor

    C

    META-INF sub directory

    D

    Resource Adapter archive

    E

    Java library


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

  • 第10题:

    单选题
    Which element of a web application deployment descriptor  element is required?()
    A

    <realm-name>

    B

    <auth-method>

    C

    <security-role>

    D

    <transport-guarantee>

    E

    <web-resource-collection>


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

  • 第11题:

    多选题
    A customer has a development environment that uses the auto-deployment feature. The customer  claims the application is not redeployed even if the new version is copied to an application  subdirectory. Which two parameters of the configuration should you check?()
    A

    Check if archive file in the compressed version has a new REDEPLOY file.

    B

    If server was started in the Development Mode. Auto-deployment is not supported in production  mode.

    C

    If the application includes an EJB 3 module. Auto-deployment is not supported for EJBs.

    D

    You change JVM from HotSpot to JRockit. Auto-deployment is not supported in HotSpot auto  deployment.

    E

    If the domain is a single-server domain. Auto-deployment is not supported in multiserver  domains.


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

  • 第12题:

    单选题
    A customer stores environmental settings in the deployment descriptors of an application. Whenever they promote the application version from testing to the production environment, they need to open the archive and modify the deployment descriptor. This process is against their security policy.    What approach should you recommend to leverage WebLogic features such that they do not have to modify the application archive for different environments?()
    A

    Keep environmental data in the global settings of domain and the application can read it from the domain where it runs.

    B

    Keep environmental data in Deployment Plan XML files. It allows you to change parameters in the deployment descriptor without opening the archive file.

    C

    Keep environmental data in the database because it is the most effective way of parametrizing the environment.  

    D

    Keep archive in exploded format so the customer does not have to open the archive files.

    E

    Eliminate all environmental settings from the application. There should not to be any environmental settings in the application. 


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

  • 第13题:

    You need to store elements in a collection that guarantees that no duplicates are stored. Which two interfaces provide that capability?()   

    • A、 Java.util.Map
    • B、 Java.util.Set
    • C、 Java.util.List
    • D、 Java.util.StoredSet
    • E、 Java.util.StoredMap
    • F、 Java.util.Collection

    正确答案:B,D

  • 第14题:

    In which two locations can library dependencies be defined for a web application? ()

    • A、 the web application deployment descriptor
    • B、 the /META-INF/dependencies.xml file
    • C、 the /META-INF/MANIFEST.MF manifest file
    • D、 the /META-INF/MANIFEST.MF manifest of a JAR in the web application classpath

    正确答案:C,D

  • 第15题:

    You want to create a valid directory structure for your Java EE web application, and you want to put yourweb application into a WAR file called MyApp.war. Which two are true about the WAR file?()

    • A、At deploy time, Java EE containers add a directory called META-INF directly into the MyApp directory.
    • B、At deploy time, Java EE containers add a file called MANIFEST.MF directly into the MyApp directory.
    • C、It can instruct your Java EE container to verify, at deploy time, whether you have properly configured your application’s classes.
    • D、At deploy time, Java EE containers add a directory call META-WAR directly into the MyApp directory.

    正确答案:A,C

  • 第16题:

    Which statement is FALSE regarding WebLogic Server 12c?()

    • A、supports Java EE 6.0
    • B、supports WebLogic Web Services 8.1 Application Environment
    • C、includes a new Maven plug-in
    • D、supports use of annotations in resource adapter class files

    正确答案:B

  • 第17题:

    A customer stores environmental settings in the deployment descriptors of an application. Whenever they promote the application version from testing to the production environment, they need to open the archive and modify the deployment descriptor. This process is against their security policy.    What approach should you recommend to leverage WebLogic features such that they do not have to modify the application archive for different environments?()

    • A、Keep environmental data in the global settings of domain and the application can read it from the domain where it runs.
    • B、Keep environmental data in Deployment Plan XML files. It allows you to change parameters in the deployment descriptor without opening the archive file.
    • C、Keep environmental data in the database because it is the most effective way of parametrizing the environment.  
    • D、Keep archive in exploded format so the customer does not have to open the archive files.
    • E、Eliminate all environmental settings from the application. There should not to be any environmental settings in the application. 

    正确答案:B

  • 第18题:

    A web application is bound to the context named "/webapp" and the client uses the browser and  makes a request to the resource http://server:port/webapp/ctxl/resource.    Where do you place this resource inside the web application structure?()

    • A、in the subdirectory /WEB-INF/ctxl
    • B、in the subdirectory /META-INF/ctxl
    • C、in the subdirectory /ctxl in the root of the archive
    • D、in the subdirectory /ctxl/resource in the root of the archive
    • E、in the root of the archive

    正确答案:C

  • 第19题:

    多选题
    Which two are required elements for the  element of a web applicationdeployment descriptor?()
    A

    <realm-name>

    B

    <url-pattern>

    C

    <description>

    D

    <web-resource-name>

    E

    <transport-guarantee>


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

  • 第20题:

    多选题
    You deployed a Java EE Shared Library and want to use it from an application that is also deployed on the same cluster.    Which two manifest attributes must be specified at a minimum with corresponding values in the deployment descriptor of the application that requires?()
    A

    Implementation-Version

    B

    Specification-Version

    C

    Extension-Name

    D

    Specification-Vendor

    E

    Implementation-Vendor


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

  • 第21题:

    单选题
    What is the name of the WebLogic specific deployment descriptor of Java Enterprise Application?()
    A

    application.xml

    B

    weblogic.xml

    C

    web.xml

    D

    weblogic-application.xml

    E

    config.xml


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

  • 第22题:

    单选题
    A web application is bound to the context named "/webapp" and the client uses the browser and  makes a request to the resource http://server:port/webapp/ctxl/resource.    Where do you place this resource inside the web application structure?()
    A

    in the subdirectory /WEB-INF/ctxl

    B

    in the subdirectory /META-INF/ctxl

    C

    in the subdirectory /ctxl in the root of the archive

    D

    in the subdirectory /ctxl/resource in the root of the archive

    E

    in the root of the archive


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

  • 第23题:

    多选题
    Which two actions protect a resource file from direct HTTP access within a web application?()
    A

    Placing it in the /secure directory

    B

    Placing it in the /WEB-INF directory

    C

    Placing it in the /META-INF/secure directory

    D

    Creating a  element within the deployment descriptor


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