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  
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? 
ORACLE

Configuring the OC4J Server
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 8
    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:
      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


    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.



     
     
    >>> 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 6 Hosted by Hostway
    Stay green...Green IT