Oracle
  Home arrow Oracle arrow Page 5 - J2EE Applications: Maintenance and Monitoring
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
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? 
Google.com  
ORACLE

J2EE Applications: Maintenance and Monitoring
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 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:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log 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.


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

       

    ORACLE ARTICLES

    - Oracle's Turn to Play in the Sun
    - 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...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek