Oracle
  Home arrow Oracle arrow Page 5 - J2EE Applications: Maintenance and Mon...
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
JMSL Numerical Library 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ORACLE

J2EE Applications: Maintenance and Monitoring
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2007-03-22

    Table of Contents:
  • J2EE Applications: Maintenance and Monitoring
  • Maintaining and Monitoring Applications
  • TWO-MINUTE DRILL
  • SELF TEST
  • SELF TEST ANSWERS

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    J2EE Applications: Maintenance and Monitoring - SELF TEST ANSWERS


    (Page 5 of 5 )

    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.

    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · This article is an excerpt from the book "Oracle 10g Application Server Exam Guide,"...
     

    Buy this book now. This article is excerpted from chapter eight of the Oracle 10g Application Server Exam Guide, written by Sam Alapati (McGraw-Hill; ISBN: 0072262710). Check it out today at your favorite bookstore. Buy this book now.

       

    ORACLE ARTICLES

    - Implementing and Using Oracle`s Restore Poin...
    - Tuning PL/SQL Code
    - Debugging PL/SQL Code
    - Testing PL/SQL Code
    - Working With PL/SQL Code
    - Conditional Compilation for Oracle Database ...
    - Compile-Time Warnings for Oracle DB 10g
    - Compiling PL/SQL Code for an Oracle Database
    - Troubleshooting PL/SQL Code
    - Managing PL/SQL Code
    - Data Manipulation and More for HTML DB Appli...
    - Oracle Database Fundamentals
    - Adding Processes to HTML DB Applications
    - Adding Computations, Processes, and Validati...
    - Sub-templates and More with Oracle HTML DB





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway