Oracle
  Home arrow Oracle arrow Page 5 - 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 
IBM developerWorks
 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 - Client


    (Page 5 of 5 )

     

    There are two XML files that contain client configuration information: application-client.xml and orion-application-client.xml.

    J2EE application-client.xml   The application-client.xml file contains the JNDI information necessary for accessing the server application.

      <application-client>
            <display-name>TemplateBean</display-name>
            <ejb-ref> 
                  <ejb-ref-name>TemplateBean</ejb-ref-name> 
                 
    <ejb-ref-type>Entity</ejb-ref-type>
                 
    <home>mTemplateHome</home>
                  <remote>Template</remote>
            </ejb-ref>
      </application-client>

    OC4J-Specific orion-application-client.xml   The orion-application-client.xml file contains JNDI mappings for the client. The JNDI mappings map the EJB reference logical name to the JNDI name for the EJB, as shown in this example:

      <orion-application-client>
        
    <ejb-ref-mapping name="TemplateBean"
         location="myapp/myapp-ejb/TemplateBean" />
     
    </orion-application-client>

    Connector

    There are two connector-related XML files: ra.xml and oc4j-ra.xml.

    ra.xml   The ra.xml file contains J2EE-related configuration information.

    oc4j-ra.xml   The oc4j-ra.xml file contains OC4J-specific configuration information.

    Using the Application Server Control to Configure OC4J

    In the previous subsections, you learned how to manually edit the various OC4J configuration files. However, you can change OC4J configuration easily through the Application Server Control. To edit OC4J server configuration files using the Application Server Control, follow these steps:

    1. On the OC4J home page, click the Administration tab to display the Administration page.
    2. On the Administration page, click the Advanced Properties button.
    3. The OC4J Advanced Properties page appears listing all configuration files available for editing for the current OC4J server.
    4. The OC4J Advanced Properties Page appears, listing all the OC4J configuration files you can edit. Click the configuration file you want to edit. You can then make your configuration changes in the editable text box that appears.
    5. Click the Apply button to save your configuration changes.

    Please check back next week for the continuation of this article.


    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

    - 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





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