Skip Headers

Table of Contents Image Oracle Application Server Containers for J2EE Servlet Developer's Guide
10g (9.0.4)

Part Number B10321-01
Go To Documentation Library
Home
Go To Index
Index

Go to next page

Contents

Title and Copyright Information

Send Us Your Comments

Preface

Audience
Documentation Accessibility
Organization
Related Documentation
Conventions

1 Servlet Overview

Introduction to Servlets
Review of Servlet Technology
Advantages of Servlets
The Servlet Interface and Request and Response Objects
Servlets and the Servlet Container
Introduction to Servlet Sessions
Introduction to Servlet Contexts
Introduction to Servlet Configuration Objects
Introduction to Servlet Filters
Introduction to Event Listeners
JSP Pages and Other J2EE Component Types
A First Servlet Example
Hello World Code
Compiling and Deploying the Servlet
Running the Servlet

2 Servlet Development

OC4J Standalone for Development
Overview: Using OC4J Standalone
Key OC4J Flags for Development
Removal of tools.jar from OC4J Standalone
Servlet Development Basics and Key Considerations
Sample Code Template
Servlet Lifecycle
Servlet Preloading
Servlet Classloading and Application Redeployment
Servlet Information Exchange
Servlet Includes and Forwards
Servlet Thread Models and Related Considerations
Servlet Performance and Monitoring
JDK 1.4 Considerations: Cannot Invoke Classes Not in Packages
Additional Oracle Features
OC4J Logging
Servlet Debugging
Oracle JDeveloper Support for Servlet Development
Introduction to OC4J Support for Open Source Frameworks
Servlet Invocation
Summary of URL Components
Servlet Invocation by Class Name During OC4J Development
Servlet Invocation in an Oracle Application Server Production Environment
Servlet Invocation in an OC4J Standalone Environment
Servlet Sessions
Session Tracking
Features of the HttpSession Interface
Session Cancellation
Session Replication in a Distributable Application
Session Servlet Example
Servlet Security
Use of Security Features
Configuration of Oracle HTTP Server and OC4J for SSL
SSL Common Problems and Solutions
Additional Security Considerations

3 Servlet Filters and Event Listeners

Servlet Filters
Overview of Servlet Filters
How the Servlet Container Invokes Filters
Filtering of Forward or Include Targets
Filter Examples
Event Listeners
Event Categories and Listener Interfaces
Typical Event Listener Scenario
Event Listener Declaration and Invocation
Event Listener Coding and Deployment Guidelines
Event Listener Methods and Related Classes
Event Listener Sample

4 JDBC and EJB Calls from Servlets

Use of JDBC in Servlets
Database Query Servlet
Deployment and Testing of the Database Query Servlet
EJB Calls from Servlets
Servlet-EJB Overview
EJB Local Lookup
EJB Remote Lookup within the Same Application
EJB Remote Lookup Outside the Application

5 Deployment and Configuration Overview

General Overview of OC4J Deployment and Configuration
Overview: OC4J Standalone Versus the Oracle Application Server Environment
Overview of OC4J Deployment Scenarios
Using Oracle Deployment Tools Versus Expert Modes
Overview of Configuration Files
Introduction to OC4J and J2EE Configuration Files
OC4J Top-Level Server Configuration File: server.xml
OC4J and J2EE Application Descriptors
OC4J and J2EE Web Descriptors
OC4J Web Site Descriptors
Example: Mappings to and from Web Site Descriptors
Application Packaging
J2EE Application Structure
EAR File and WAR File Structures
Deployment Scenarios to OC4J Standalone
Setting Up an Administrative User and Password
Starting and Stopping OC4J Standalone
OC4J Default Application and Default Web Application
Deploying an EAR File to OC4J Standalone
Deploying Files into a J2EE Application Structure on OC4J Standalone
Deploying an Independent WAR File to OC4J Standalone
Deploying Files into a Web Application Directory Structure on OC4J Standalone
Application Undeployment or Redeployment in OC4J Standalone
OC4J Deployment in Oracle Application Server
Overview of OC4J Deployment and Configuration in Oracle Application Server
OC4J Default Web Application in Oracle Application Server
Application Undeployment and Redeployment in Oracle Application Server

6 Configuration File Descriptions

Configuration for global-web-application.xml and orion-web.xml
Element Descriptions for global-web-application.xml and orion-web.xml
DTD for global-web-application.xml and orion-web.xml
Hierarchical Representation of global-web-application.xml and orion-web.xml
Sample global-web-application.xml Settings
Configuration for Web Site XML Files
Element Descriptions for Web Site XML Files
DTD for Web Site XML Files
Hierarchical Representation of Web Site XML Files
Sample default-web-site.xml File

7 Configuration with Enterprise Manager

Web Module Configuration in Oracle Enterprise Manager
Application Server Control Page Descriptions
Application Server Control OC4J Home Page
Application Server Control OC4J Applications Page
Application Server Control Deploy Application (EAR) Page
Application Server Control Deploy Web Application (WAR) Page
Application Server Control OC4J Administration Page
Application Server Control Website Properties Page
Application Server Control Web Module Page
Application Server Control Web Module Properties Page
Application Server Control Web Module Mappings Page
Application Server Control Web Module Filtering and Chaining Page
Application Server Control Web Module Environment Page
Application Server Control Web Module Advanced Properties Page

A Open Source Frameworks and Utilities

Configuration and Use of Jakarta Struts in OC4J
Overview of Jakarta Struts
Downloading the Struts Binary Distribution
Unpacking the Struts Binary Distribution
Installing and Accessing Struts Documentation
Installing the Struts Sample Web Application
Deploying Your Own Application with the Struts Framework
Configuration and Use of Jakarta log4j in OC4J
Overview of Jakarta log4j
Downloading the log4j Binary Distribution
Unpacking the log4j Binary Distribution
Installing the log4j Library
Using log4j Configuration Files
Enabling log4j Debug Mode

B Third Party Licenses

Apache HTTP Server
The Apache Software License
Apache JServ
Apache JServ Public License

Index


Go to next page
Oracle
Copyright © 2002, 2003 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Index
Index