Oracle8i Enterprise JavaBeans and CORBA Developer's Guide
Release 8.1.5

A64683-01

Library

Product

Index

Next

Contents

Title and Copyright Information

Send Us Your Comments

Preface

Online Sources

1 Overview

Prerequisite Reading
About Enterprise JavaBeans
Stateful and Stateless Session Beans
Deployment Descriptor
About CORBA
Common Features
IIOP
Tools
Caffeine
Example Code
Words About Acronyms

2 Enterprise JavaBeans

Defining Enterprise JavaBeans
EJB Development Roles
EJBs as Distributed Components
What is an Enterprise JavaBean?
Kinds of EJBs
Session Beans
Implementing an EJB
The EJB Architecture
Basic Concepts
The Home Interface
The Remote Interface
Accessing the Bean Methods
Parameter Passing
A First EJB Application
The Interfaces
The Bean Implementation
A Parameter Object
The Deployment Descriptor
The Client Code
Deploying an EJB
Write the Deployment Descriptor
Create a JAR File
Publish the Home Interface
Dropping an EJB
Handling Transactions
TransactionAttribute
Access Control
Transaction Isolation Level
Session Synchronization
Deployment Steps
Programming Techniques
Using SQLJ
Setting a Session Timeout
Saving an EJB Handle
EJB as Client
Programming Restrictions
For More Information

3 Developing CORBA Applications

Terminology
About CORBA
CORBA Features
About the ORB
The Interface Description Language (IDL)
Using IDL
IDL Types
Exceptions
Getting by Without IDL
A First CORBA Application
Writing the IDL Code
Generate Stubs and Skeletons
Write the Server Object Implementation
Write the Client Code
Compiling the Java Source
Load the Classes into the Database
Publish the Object Name
Run the Example
Locating Objects
The Name Space
Looking Up an Object
Activating ORBs and Server Objects
Client Side
Server Side
About Object Activation
Using SQLJ
Running the SQLJ Translator
A Complete SQLJ Example
CORBA Callbacks
IDL
Client Code
Callback Server Implementation
Callback Client-Server Implementation
Printback Example
Using the CORBA Tie Mechanism
Debugging Techniques
For More Information
Books
URLs

4 Connections and Security

Connection Basics
Services
About JNDI
The JNDI Context Interface
Connecting Using JNDI
Context Methods
The JNDI InitialContext Class
Services and Sessions
About the Session IIOP Protocol
Configuration for IIOP
Database Listeners and Dispatchers
URL Syntax
URL Components and Classes
The Service Context Class
The Session Context Class
Session Management
Starting a New Session
Starting a Named Session From a Client
Example: Activating Services and Sessions
Starting a New Session From a Server Object
Controlling Session Duration
Ending a Session
Authentication
Basic Client Authentication Techniques
The Login Protocol
Credentials
Access Rights to Database Objects
Published Objects
Other Server Objects
Reauthentication
Using the Secure Socket Layer
SSL Protocol Version Numbers
Using SSL on the Client Side
Determining SSL Certificate Information
Using SSL on the Server Side
Non-JNDI Clients
For More Information

5 Transaction Handling

Transaction Overview
Limitations
Transaction Demarcation
Transaction Context
Transaction Service Interfaces
TransactionService
Using The Java Transaction Service
CORBA Examples
Client-Side Demarcation
Server-Side JTS
Transactions in Multiple Sessions
Transaction Management for EJBs
Declarative Transactions
session Synchronization
JDBC
AuroraUserTransaction
Session Synchronization
EJB Transaction Examples
Client-Side Demarcated
Transaction Management in an EJB
JDBC
For More Information

6 Tools

Schema Object Tools
What and When to Load
Resolution
Digest Table
Compilation
loadjava
dropjava
Session Namespace Tools
publish
remove
sess_sh
Enterprise JavaBean Tools
deployejb
ejbdescriptor
VisiBrokerTM for Java Tools
Miscellaneous Tools
java2rmi_iiop
modifyprops

A Example Code: CORBA

Basic Examples
helloworld
sqljimpl
jdbcimpl
factory
lookup
callback
printback
tieimpl
bank
pureCorba
Session Examples
explicit
clientserverserver
timeout
sharedsession
twosessions
twosessionsbyname
Transaction Examples
clientside
serversideJDBC
serversideJTS
serversideLogging
multiSessions
RMI Examples
helloworld
callouts
callback
Applet Examples
innetscape
inappletviewer
JNDI Example
lister

B Example Code: EJB

Basic Examples
helloworld
saveHandle
sqljimpl
jdbcimpl
callback
beanInheritance
Transaction Examples
clientside
multiSessions
serversideJTS
serversideLogging
Session Examples
timeout
clientserverserver

C Comparing the Oracle8i JServer and VisiBrokerTM VBJ ORBs

Object References Have Session Lifetimes
The Database Server is the Implementation Mainline
Server Object Implementations are Deployed by Loading and Publishing
Implementation by Inheritance is Nearly Identical
Implementation by Delegation is Different
Clients Look Up Object Names with JNDI
No Interface or Implementation Repository
The Bank Example in Aurora and VBJ
The Bank IDL Module
Aurora Client
VBJ Client
Aurora Account Implementation
VBJ Account Implementation
Aurora Account Manager Implementation
VBJ Account Manager Implementation
VBJ Server Mainline

D Abbreviations and Acronyms

Index



Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Index