Oracle9i Enterprise JavaBeans Developer's Guide and Reference
Release 1 (9.0.1)

Part Number A90188-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Index
Index

Master Index

Feedback

Go to next page

Contents

Title and Copyright Information

Send Us Your Comments

Preface

1 Oracle9i Overview

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

2 Oracle9i 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

Overview
Oracle9i Database Templates For Default Configuration
Advanced Configuration
Overview of Listeners and Dispatchers
Handling Incoming Requests
Configuring The Dispatcher Through Editing Initialization Files
Configuring the Listener
SSL Configuration 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 the Oracle9i 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

Overview
Data Integrity
Using the Secure Socket Layer
SSL Version Negotiation
Authentication
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
Authorization
Setting Up Trust Points
Parsing Through the Server's Certificate Chain
AuroraCurrent Class

7 Transaction Handling

Transaction Overview
Global and Local Transactions
Demarcating Transactions
Transaction Context Propagation
Enlisting Resources
Two-Phase Commit
JTA Summary
Environment Initialization
Methods for Enlisting Database Resources
Summary of Single-Phase and Two-Phase Commit
Differences Between Container and Bean-Managed Transactions
JTA Server-Side Demarcation
Container-Managed Transactions
Bean-Managed Transactions
JTA Client-Side Demarcation
Enlisting Resources on the Server-side
Binding Transactional Objects in the Namespace
Configuring Two-Phase Commit Engine
Global Transactions in an Oracle9i Application Server Environment
Creating DataSource Objects Dynamically
Setting the Transaction Timeout
Using the Session Synchronization Interface
JTA Limitations
JDBC Restrictions

A XML Deployment Descriptors

Enterprise JavaBean Deployment Descriptor
Header
JAR file
Enterprise JavaBeans Descriptor
Application Assembler Section
EJB Client JAR Section
Oracle-Specific Deployment Descriptor
Header
Specifying Multiple Beans in Deployment JAR File
Defining Mappings
Defining Oracle-Specific Elements for Transactions
Defining Run-As Identity
Defining Container-Managed Persistence
DTD for Oracle-Specific Deployment Descriptor

B Example Code: EJB

Basic Example
README
Client
Home Interface for Hello
Remote Interface for Hello
Bean Implementation for Hello
Deployment Descriptors
SQLJ Example
README
Client
Home Interface
Remote Interface
Bean Implementation
Deployment Descriptors
Bean Inheritance Example
README
Client
Home Interface
Remote Interface
Bean Implementation
Deployment Descriptors
Entity Bean Examples
Bean-Managed Entity Bean Example
Client
Home Interface
Remote Interface
Exception
Bean Implementation
Deployment Descriptors
Database Table Updates
Container-Managed Entity Bean Example
Client
Home Interface
Remote Interface
Bean Implementation
Deployment Descriptors
Database Table Updates
Session Example
Client
Home Interface
Remote Interface
Bean Implementation
Deployment Descriptors
SSL Examples
Client-Side Authentication Example
README
Client
Home Interface
Remote Interface
Bean Implementation
Deployment Descriptors
Server-Side Authentication Example
README
Client
Home Interface
Remote Interface
Bean Implementation
Deployment Descriptors

C Abbreviations and Acronyms

Index


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

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Index
Index

Master Index

Feedback