SunQuest
 
       Oracle
  Home arrow Oracle arrow Page 3 - Configuring J2EE Application XML Files
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 
Actuate Whitepapers 
VeriSign Whitepapers 
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

Configuring J2EE Application XML Files
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2007-03-08

    Table of Contents:
  • Configuring J2EE Application XML Files
  • Description of the Application (J2EE Deployment) XML Files
  • The orion-application.xml File
  • Web Module
  • Client

  • 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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Configuring J2EE Application XML Files - The orion-application.xml File


    (Page 3 of 5 )

    The orion-application.xml file is the OC4J-specific global configuration file for all applications in an OC4J instance. You specify the following types of configuration information in the orion-application.xml file:

    1. autocreate-tables and autodelete-tables: You must define a data source for all container-managed persistence (CMP) beans. The autocreate-tables attributes determine whether to automatically create tables for CMP beans for entity bean persistence, thus ensuring that fields and database types are mapped correctly. The autodelete-tables attribute determines whether to automatically delete the tables. By default, autocreate-tables is set to true and autodelete-tables is set to false.
    2. Default data sources for CMP beans
    3. Default security user manager
    4. JNDI authorization

    If you want to bind EJBs to existing database tables, set the autocreate-tables attribute to false. You then deploy the EJB in a .ear file. Finally, you reconfigure the newly generated orion-ejb-jar.xml file so it uses the existing database tables.

    global-web-application.xml   The global-web-application.xml file contains common settings for all the Web modules in an OC4J instance. The file contains OC4J-specific global Web application configuration details.

    oc4j-connectors.xml   The oc4j-connectors.xml file is a connector configuration file that contains the global OC4J-specific connector configuration information.

    Now that you’ve reviewed the four global J2EE configuration files, let’s turn our attention to the two types of configuration files (J2EE-specific files and OC4J-specific files) that each of the four application types (EJB, Web module, client, and connector) can have.

    EJB

    The EJB-related XML files are J2EE EJB application configuration files, used to define EJB deployment descriptors; they are part of the EJB JAR file. There are two EJB XML files: the J2EE ejb-jar.xml file and the OC4J-specific orion-ejb-jar.xml file.

    J2EE ejb-jar.xml   The ejb-jar.xml file defines EJB deployment parameters in a JAR file. If you’re using CMP, the file contains definitions for the container-managed EJBs.

    OC4J-Specific orion-ejb-jar.   The orion-ejb-jar.xml file defines OC4J-specific deployment descriptors for EJBs and thus contains the deployment time information for EJBs. The file provides the mapping for EJBs to the OC4J server environment. You can specify the following attributes in the orion-ejb-jar.xml file:

    1. Session persistence settings
    2. Time-out settings
    3. Transaction retry settings
    4. CMP, ORMI, and JNDI mappings

    The orion-ejb-jar.xml file is located in the $ORACLE_HOME/j2ee/home/ application-deployments directory. After you deploy an application, you’ll find the orion-ejb-jar.xml file in the /deploymentName/jarname(.jar)/orion-ejb-jar.xml directory. If you bundle the EJB with the application or if you don’t specify a deployment directory in the OC4J main configuration file (server.xml), the orion-ejb-jar.xml file will be stored under the META-INF/orion-ejb-jar.xml directory.

    The orion-ejb-jar.xml file will be copied to the directory specified for the deployment-directory attribute, but only if there are no prior files in that directory. Note that that you use the orion-ejb-jar.xml file only for the initial configuring of an application deployment. After this, the OC4J instance will modify the files to add pertinent information to it.

    More Oracle Articles
    More By McGraw-Hill/Osborne


       · 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

    - 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
    - Focusing on Templates in Oracle HTML DB

    BlackBerry VTS




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