Home arrow Oracle arrow Page 5 - J2EE Applications: Maintenance and Monitoring

SELF TEST ANSWERS - Oracle

In this final article of a six-part series, you will learn how to deploy, maintain, and monitor J2EE applications. You'll also review the content of all of the parts; a self-test is included at the end. It is excerpted from chapter eight of the Oracle 10g Application Server Exam Guide, written by Sam Alapati (McGraw-Hill; ISBN: 0072262710).

TABLE OF CONTENTS:
  1. J2EE Applications: Maintenance and Monitoring
  2. Maintaining and Monitoring Applications
  3. TWO-MINUTE DRILL
  4. SELF TEST
  5. SELF TEST ANSWERS
By: McGraw-Hill/Osborne
Rating: starstarstarstarstar / 2
March 22, 2007

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
  1. A is correct. The default OC4J instance is named home. 
    B, C, and D are wrong because there are no such default OC4J instances.
  2. B and C are correct. B is correct because you must only specify the location attribute when looking up a non-emulated data source in the JNDI tree. C is correct because you must specify all three attributes for emulated data sources, although only the ejb-location attribute is used by the applications, servlets, JSPs, and EJBs. 
    A is wrong because you must specify all three attributes for emulated data sources, and D is wrong because you must specify only the location attribute for a non-emulated data source.
  3. C is correct. The opmnctl startproc process-type=OC4J command will start all OC4J instances in an OracleAS instance. 
    A is wrong because the ias-component option starts only the specified OC4J instance, not all OC4J instances. B is wrong because the process-type option canít be used to start a single instance of OC4J. C is wrong because the command is missing the process-type option.
     
  4. A is correct. The server.xml file is the main OC4J configuration file. 
    B is wrong because the web.xml file contains the Web configuration information. C is wrong because the oc4j_module is part of the Oracle HTTP Server configuration, not the OC4J configuration. D is wrong because the application.xml is the key configuration file for an application, not the OC4J instance. 
  5. B is correct. You use EAR files to deploy J2EE applications. 
    A is wrong because WAR files are used to deploy Web applications, not J2EE applications. C is wrong because JAR files are used to deploy client applications only. D is wrong because it refers to a nonexistent type of file. 
  6. C is correct. The mod_oc4j module is part of the Oracle HTTP Server, and it is instrumental in facilitating communications between the Web server and the OC4J instance.
    A and B are wrong because the oc4j_module isnít a configuration file but an HTTP module. D is wrong because the oc4j_module has nothing to do with the OC4J configuration. 
  7. A is correct. Data sources are published in the Java Naming and Directory Interface ( JNDI).
    B, C, and D are the wrong locations for publishing the data sources. 
  8. A is correct. The OC4J-specific global configuration file is named orion-application.xml (all OC4J-specific files have the orion prefix in the XML files).
    B is wrong because the server.xml file is the main configuration file for the OC4J instance. C is wrong because the application.xml file is the main J2EE-specific application configuration file. D is wrong because it refers to a nonexistent configuration file.
  9. D is correct. When you deploy a Web application for the first time, its WAR file is wrapped into an EAR file.
    A, B, and C are wrong because they provide the wrong filenames.
  10. B is correct. You must use a non-emulated data source to access multiple databases.
    A is wrong because an emulated data source will let you connect only to a single database instance. C is wrong because the default data source (OracleDS) is an emulated data source that allows you to connect to just a single Oracle database. D is wrong because you must use a datasource file when youíre using data sources.


 
 
>>> More Oracle Articles          >>> More By McGraw-Hill/Osborne
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

ORACLE ARTICLES

- Oracle Java Security Woes Continue
- Oracle's New IaaS Cloud Option: There's a Ca...
- Oracle Acquires Eloqua to Boost Cloud Presen...
- Choosing Innovation: Oracle Survey Insights
- Oracle Fixes Privilege Escalation Bug
- Oracle`s Communications Service Availability...
- Oracle Releases Exalytics, Taleo Plans
- Oracle Releases Communications Network Integ...
- Oracle Releases Communications Data Model 11...
- Oracle Releases PeopleSoft PeopleTools 8.52
- Oracle Integrates Cloudera Apache Distro, My...
- Oracle Releases MySQL 5.5.18
- Oracle Announces NoSQL Database Availability
- Sorting Database Columns With the SELECT Sta...
- Retrieving Table Data with the LIKE Operator

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: