Oracle
  Home arrow Oracle arrow Page 5 - Configuring the OC4J Server
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

Configuring the OC4J Server
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2007-03-01

    Table of Contents:
  • Configuring the OC4J Server
  • Configuring OC4J
  • Specifying Other J2EE Applications
  • Other OC4J Server XML Files
  • The Web Site XML Files

  • 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


    Configuring the OC4J Server - The Web Site XML Files


    (Page 5 of 5 )

    The Web site–related XML files configure ports, protocols, and Web contexts for the OC4J Web site, and are in the following format:

      *-web-site.xml

    The web-site.xml file contains the Web site configuration information, including the following:

    1. Host name, IP addresses, and listener ports
    2. Default Web application for the site
    3. SSL configuration
    4. Settings for user Web applications

    Here’s a typical web-site.xml file:

    <?xml version="1.0" standalone='yes'?>
    <!DOCTYPE web-site PUBLIC "OracleAS XML Web-site"  
     "http://xmlns.oracle.com/ias/dtds/web-site-9_04.dtd">
    <web-site host="localhost" port="3302" protocol="ajp13"
     display-name="My Java Web Site" cluster-island="1" >
    <web-site port="3302" protocol="ajp13" display-name="My Java Web Site">
    <!--The default web-app for this site, bound to the root-->
    <default-web-app application="default" name="defaultWebApp" root="/j2ee" />
    <web-app application="default" name="dms" root="/dmsoc4j" access-log="false" /> <access-log path="../log/default-web-access.log" />
    </web-site>

    exam watch:  The web-site.xml file is the OC4J Web server configuration file.

    Here are the key elements of the web-site-xml file:

    • web-site   The name of your Web site.
    • host   The name of the server hosting the Web server.
    • display-name   A user-friendly Web site name.
       
    • default-web-app   The default Web application.
    • name   The name of the WAR file for the application, minus its .war extension.
    • port   The Oracle HTTP Server forwards requests over the AJP listening port defined here. The OPMN configuration contains information about the range of AJP ports that can be used.
    • protocol   The protocol used is AJP1.3, which is the Apache Jserver Protocol, used by mod_oc4j running on the Oracle HTTP Server (which is based on the Apache Web server), to communicate with the OC4J instance.
    • root   The value for this attribute is /j2ee in our example; note that this must match the value specified for the Oc4jMount command in the oc4j.conf file. The root variable shows the root context for the application off your Web site. If your Web site is http://myhost:7777/j2ee, you initiate your application by going to http://myhost:7777/j2ee/testapp (testapp is the name of your J2EE application).
    • access-log   Name of the log where access information is logged.

    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 book 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 4 hosted by Hostway