Oracle8i Enterprise JavaBeans Developer's Guide and Reference
Release 3 (8.1.7)

Part Number A83725-01


Solution Area


Go to next page


Title and Copyright Information

Send Us Your Comments


1 Overview

About Enterprise JavaBeans
EJB Development Roles
Oracle8i EJB Implementation Features
IIOP Transport Protocol
Stateful and Stateless Session Beans
Implementing an EJB
Basic Concepts
Types of EJBs
Session Beans
Entity Beans

2 Enterprise JavaBeans

Invoking Enterprise JavaBeans
Creating Enterprise JavaBeans
Requirements for Remote and Home Interface Implementation
Creating the Remote Interface
Creating the Home Interface
Creating the Exception Class
Implementing the Bean
Interface Implemented
Bean Implementation Example
Developing Your Client Application
Using the getEJBHome Method
Parameter Passing
A Parameter Object
The Client Code
Deploying an EJB
Deployment Steps
Write the Deployment Descriptor
Create the Oracle Deployment Map File
Create a JAR File
Publish the Home Interface
Dropping an EJB
Run the Example
Programming Restrictions
Debugging Techniques
Using a Debug Agent for Debugging Server Applications

3 Configuring IIOP Applications

Oracle8i Typical or Minimal Installation
Oracle8i Custom Installation
Manual Install and Configuration
Configuring Through Tools
Configuring Through Editing Initialization Files
Advanced Configuration Options
Database Listeners and Dispatchers
Dynamic Listener Endpoint Registration
Direct Dispatcher Connection
Configuring SSL for EJB and CORBA

4 Entity Beans

Definition of an Entity Bean
Managing Persistent Data
Uniquely Identified by a Primary Key
Performing Complex Logic Involving Dependent Objects
Difference Between Session and Entity Beans
Implementing Callback Methods
Using ejbCreate and ejbPostCreate
Using setEntityContext
Using ejbRemove
Using ejbStore and ejbLoad
Creating Entity Beans
Home Interface
Remote Interface
Primary Key
Entity Bean Class
Create Database Table and Columns for Entity Data
Deploying the Entity Bean
Client Accessing Deployed Entity Bean
Difference Between Bean-Managed and Container-Managed Beans
Container-Managed Persistence
Accessing EJB References and JDBC DataSources
EJB References
JDBC DataSources

5 JNDI Connections and Session IIOP Service

JNDI Connection Basics
The Name Space
Execution Rights to Database Objects
URL Syntax
URL Components and Classes
Using JNDI to Access Bound Objects
Importing JNDI Support Classes
Retrieving the JNDI InitialContext
Session IIOP Service
Session IIOP Service Overview
Session Management
Service Context Class
Session Context Class
Session Management Scenarios
Setting Session Timeout
Retrieving JServer Version Number
Activating In-Session EJB Objects From Non-IIOP Presentations
Invoking EJB Objects From Applets
Using Signed JAR Files to Conform to Sandbox Security
Performing Object Lookup in Applets
Modifying HTML for Applets that Access EJB Objects

6 IIOP Security

Data Integrity
Using the Secure Socket Layer
SSL Version Negotiation
Client-side Authentication
Using JNDI for Authentication
Providing Username and Password for Client-Side Authentication
Using Certificates for Client Authentication
AuroraCertificateManager Class
Server-Side Authentication
Setting up Trust Points
Parsing through the Server's Certificate Chain
AuroraCurrent Class

7 Transaction Handling

Transaction Overview
Global and Local Transactions
Demarcating Transactions
Container or Bean Managed Transactions
Transaction Context Propagation
Enlisting Resources
Two-Phase Commit
JTA Summary
JTA Limitations
JTA Server-Side Demarcation
Container-Managed Transactions
Bean-Managed Transactions
JTA Client-Side Demarcation
Enlisting Resources on the Server-side
Configuring Two-Phase Commit Engine
Creating DataSource Objects Dynamically
Setting the Transaction Timeout
Using the Session Synchronization Interface
JDBC Restrictions

A XML Deployment Descriptors

Enterprise JavaBean Deployment Descriptor
JAR file
Enterprise JavaBeans Descriptor
Application Assembler Section
Oracle-Specific Deployment Descriptor
Defining Mappings
Defining Two Phase Commit Engine for Transactions
Defining Run-As Identity
Defining Container-Managed Persistence
EJB Client JAR Section
DTD for Oracle-Specific Deployment Descriptor

B Example Code: EJB

Basic Example
Home Interface for Hello
Remote Interface for Hello
Bean Implementation for Hello
SQLJ Example
Home Interface
Remote Interface
Bean Implementation
Bean Inheritance Example
Home Interface
Remote Interface
Bean Implementation
Entity Bean Examples
Bean-Managed Entity Bean Example
Home Interface
Remote Interface
Bean Implementation
Deployment Descriptor
Container-Managed Entity Bean Example
Home Interface
Remote Interface
Bean Implementation
XML Deployment Descriptor
Oracle-Specific Deployment Descriptor
Database Table Updates
Session Example
Home Interface
Remote Interface
Bean Implementation
SSL Examples
Client-Side Authentication Example
Home Interface
Remote Interface
Bean Implementation
Server-Side Authentication Example
Home Interface
Remote Interface
Bean Implementation

C Abbreviations and Acronyms

Go to next page
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.


Solution Area