Java Center - Oracle9iAS Containers for J2EE

How-To Documents

Do you want to know how to do something specific with Oracle9iAS Containers for J2EE? Have you ever wanted to see a quick example of how to use a new feature? Then the Oracle9iAS Containers for J2EE How-To documents may be just what you are looking for.

A How-To focusses on a single feature of Oracle9iAS Containers for J2EE and walks you through all of the mechanics of configuring, coding, and using the feature. A How-To comes as a complete package containing a small discussion document and a corresponding code example with Ant build scripts. Click the zip links below to download the complete How-To packages. Click the HTML links to read the discussion document online.

We would really like to encourage the Oracle9iAS Containers for J2EE development community to contribute ideas and works in this area. If you have a How-To document or an idea that you would like to have published in this area, then please post a note in the J2EE forum on OTN.

Please note that some of the How-To's only work with later versions of Oracle9iAS Containers for J2EE. For example Oracle9iAS Containers for J2EE (9.0.2) does not support some aspects of the EJB 2.0 specification, so the Local Interfaces How-To will not work on version 9.0.3. However, do not take the list below as as a list of what features are supported in what version of Oracle9iAS Containers for J2EE. This is simply a list of which How-To has been built and tested with which version of Oracle9iAS Containers for J2EE.

[  Servlets   JSP   EJB    Java2 Connectors   JAAS   Web Services ]

Servlets  
9.0.2
9.0.3
HTML ZIP

How-To: Use Servlet Filters
Servlet 2.3 Filters let you perform pre and post processing on requests. This How-To shows you how to create, and configure a Servlet Filter.

Y
Y
HTML ZIP

How-To: Use Servlet Lifecycle Events
Servlet 2.3 Lifecycle events let you as the developer interact more closely with the servlet container as it exectues your Web application. This How-To shows you how to create a listener for HttpSession events, and how to register it with your Web application.

Y
Y
HTML ZIP How-To: Override the System Classloader
This How-To shows you how you can configure the Web container to load classes from the classes and lib directories in deployed Web application in preference to the System level classloader.
N
Y
HTML ZIP How-To: Use the Manifest File Class-Path for Web Applications
Java Archives support the specification of dependent class libraries through the Class-Path entry of the Manifest.mf file. This How-To demonstrates how to use this standard facility to define depedencies on external JAR files and resources from a standard J2EE Web application.
N
Y
 
JSP  
HTML ZIP

How-To: Use the JSP Iterate Tag
The JSP Iterate custom tag interface enables a tag to repeatedly evaluate it's element body. This lets you work with collections from custom tags. This How-To explains the new Iterate tag inerface, and shows you how to use it with a Vector example.

Y
Y
HTML ZIP

How-To: Use JSP Documents (XML pages)
JSP 1.2 now supports both JSP Pages and JSP Documents. A JSP Document is a JSP page written in XML syntax. This How-To shows you how to create and access a simple JSP Document.

Y
Y
 
EJB  
HTML ZIP How-To: Use Message Driven Beans
Message-Driven Beans provide a new asynchronous model for EJBs. This How-To shows you a MDB and describes how to hook it up to message queues and topics.
N
Y
HTML ZIP How-To: Perform EJB Transactions Across Method Calls
This how-to demonstrates how to conduct transactions across method calls by suspending and then resuming the transaction.
Y
Y
HTML ZIP How-To: Setup and Use EJB Clustering
To provide for increased scalability and high availability, OC4J supports clustering for EJBs. This How-To demonstrates how to create and test a simple, clustered EJB application.
N
Y
HTML ZIP How-To: EJB 2.0 Local Interfaces
Local Interfaces are a new addition to the EJB world. This How-To provides a very simple example of an EJB application using Local Interfaces.
N
Y
HTML ZIP How-To: EJB 2.0 Style CMP
Container Managed Persistence (CMP) has changed significantly with EJB 2.0. This How-To shows you what an EJB using the abstract persistence schema looks like.
N
Y
HTML ZIP How-To: EJB 2.0 Container Managed Relationships
How to implement Container Managed Relationships (CMR) in OC4J. Simple example linking the EMP and DEPT database tables using CMP EJBs.
N
Y
HTML ZIP How-To: RMI-IIOP
How to call an EJB using the RMI protocol over IIOP. This how-to uses a simple client to call a remote EJB using the RMI-IIOP method.
N
Y
HTML ZIP How-To: EJB 2.0 Using EJB QL for Finder Methods
EJB Query Language (EJB QL) is a new feature in the EJB 2.0 specification. EJB QL allows you to express queries for finder and ejbSelect methods in a portable manner. This How-To shows you how to use EJB QL to specify specific queries for the finder methods on a bean.
N
Y
 
Java2 Connectors  
HTML ZIP

How-To: Use the Java2 Connectors with OC4J
This How-To demonstrates how to configure and deploy the Sun blackbox resource adapter and use it from a Web application.

Y
Y
JAAS    
HTML ZIP

How-To: Configure Security with JAAS
JAAS provides a set of Java interfaces that allows applications to add authentication and user access control capabilities to their functionalilty. This How-To shows you how to configure and use the Oracle JAAS provider from your applications.

Y
Y
Web Services  
HTML ZIP

How-To: Construct and Use Simple Web Services
Using simple Web services, an application can expose it's functionality and interfaces to web service clients. This How-To demonstrates the simple web service functionality in OC4J to expose stateful/stateless Java classes and session EJBs as web services.

Y
Y