Oracle8i Enterprise JavaBeans Developer's Guide and Reference Release 3 (8.1.7) Part Number A83725-01 |
Library | Service | Contents | Index

# 7
Transaction Handling

In Oracle8i, Enterprise JavaBeans use Java Transaction API (JTA) 1.0.1 for managing transactions. JTA provides the ability for both bean-managed and container-managed transactions:

- Bean-managed transactions are programmatically demarcated within your bean implementation. The transaction is completely controlled by the application.

- Container-managed transactions are controlled by the container. That is, the container either joins the client's transaction or starts the transaction for the application--as defined within the deployment descriptor--and ends the transaction when the bean completes. Your implementation does not need to provide code for managing the transaction.

This chapter assumes that you have a working knowledge of JTA. The discussion focuses mostly on examples and explaining the differences between the Sun Microsystems JTA specification and the Oracle JTA implementation. See `http://www.javasoft.com` for the Sun Microsystems JTA specification.

- Transaction Overview

- JTA Server-Side Demarcation

- JTA Client-Side Demarcation

- Configuring Two-Phase Commit Engine

- Creating DataSource Objects Dynamically

- Setting the Transaction Timeout

- JDBC Restrictions

| Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
Library | Service | Contents | Index