|
|
This document explains how to use transactions in CORBA, EJB, and RMI applications that run on WebLogic Enterprise (WLE). It introduces transaction concepts and the WLE Transaction Service. It discusses examples of transactional CORBA applications (C++ and Java), EJB applications (with container- and bean-managed transaction demarcation), and RMI applications. It describes how to integrate transactions with CORBA Java, EJB, and RMI applications that use the WLE JDBC/XA driver. Finally, this document explains how to administer transactional WLE applications.
Overview of Transactions in WLE Applications
ACID Properties of Transactions
Support for Business Transactions
Distributed Transactions and the Two-Phase Commit Protocol
What Happens During a Transaction
Transactions in WLE CORBA Applications
Transactions in WLE EJB Applications
Transactions in WLE RMI Applications
Transactions Sample CORBA Application
Lightweight Clients with Delegated Commit
Transaction Propagation (CORBA Only)
Interoperability Between Remote Clients and the WLE Domain
Intradomain and Interdomain Interoperability
Relationship of the Transaction Service to Transaction Processing
Multithreaded Transaction Client Support
Transaction Service in CORBA Applications
Getting Initial References to the TransactionCurrent Object
CORBA Transaction Service API Extensions
Notes on Using Transactions in WLE CORBA Applications
Transaction Service in EJB Applications
Transaction Service in RMI Applications
Exceptions Thrown by UserTransaction Methods
Integrating Transactions in a WLE Client and Server Application
Transaction Support in CORBA Applications
Making an Object Automatically Transactional
Enabling an Object to Participate in a Transaction
Preventing an Object from Being Invoked While a Transaction Is Scoped
Excluding an Object from an Ongoing Transaction
Opening an XA Resource Manager
Closing an XA Resource Manager
Transactions and Object State Management
Delegating Object State Management to an XA Resource Manager
Waiting Until Transaction Work Is Complete Before Writing to the Database
How the Transactions University Sample Application Works (C++ Only)
About the Transactions University Sample Application
Transactional Model Used by the Transactions University Sample Application
Object State Considerations for the University Server Application
Configuration Requirements for the Transactions Sample Application
Overview of WLE CORBA Transactions
Summary of the Development Process for Transactions
Step 1: Use the Bootstrap Object to Obtain the TransactionCurrent Object
Step 2: Use the TransactionCurrent Methods
How the JDBC Bankapp Sample Application Works
Development Process for the JDBC Bankapp Sample Application
Object Management Group (OMG) Interface Definition Language (IDL)
Server Description File (BankApp.xml)
Setting Up the Database for the JDBC Bankapp Sample Application
Setting Up a Microsoft SQL Server Database
Building the JDBC Bankapp Sample Application
Step 1: Copy the Files for the JDBC Bankapp Sample Application into a Work Directory
Step 2: Change the Protection Attribute on the Files for the JDBC Bankapp Sample Application
Step 3: Verify the Settings of the Environment Variables
Step 4: Run the setupJ Command
Step 5: Load the UBBCONFIG File
Compiling the Client and Server Applications
Initializing an Oracle Database
Initializing a Microsoft SQL Server Database
Starting the Server Application in the JDBC Bankapp Sample Application
Files Generated by the JDBC Bankapp Sample Application
Starting the ATM Client Application in the JDBC Bankapp Sample Application
Stopping the JDBC Bankapp Sample Application
Using the ATM Client Application
Steps for Using the ATM Client Application
How the Transactions Sample Application Works
Development Process for the Transactions Sample Application
Implementation Configuration File (ICF)
Setting Up the Transactions Sample Application
Step 1: Copy the Files for the Transactions Sample Application into a Work Directory
Step 2: Change the Protection on the Files for the Transactions Sample Application
Step 3: Set the Environment Variables
Step 4: Initialize the University Database
Step 5: Load the UBBCONFIG File
Step 6: Create a Transaction Log
Compiling the Transactions Sample Application
Building the CORBA C++ Server and Client Applications
Building the CORBA Java Client Application
Building the ActiveX Client Application
Running the Transactions Sample Application
Step 1: Start the Server Application
Step 2: Start a Client Application
Using the Client Applications in the Transactions sample application
How the XA Bankapp Sample Application Works
Development Process for the XA Bankapp Sample Application
Object Management Group (OMG) Interface Definition Language (IDL)
Implementation Configuration File
Setting Up the Database for the XA Bankapp Sample Application
Building the XA Bankapp Sample Application
Step 1: Copy the Files for the XA Bankapp Sample Application into a Work Directory
Step 2: Change the Protection Attribute on the Files for the XA Bankapp Sample Application
Step 3: Verify the Settings of the Environment Variables
Step 4: Run the setupX Command
Step 5: Load the UBBCONFIG File
Step 6: Create a Transaction Log
Compiling the Client and Server Applications
Initializing the Oracle Database
Starting the Server Application in the XA Bankapp Sample Application
Files Generated by the XA Bankapp Sample Application
Starting the ATM Client Application in the XA Bankapp Sample Application
Stopping the XA Bankapp Sample Application
Using the ATM Client Application
About Transaction Attributes for EJBs
Transaction Attributes for Container-Managed Transactions
Transaction Attributes for Bean Managed Transactions
Participating in a Transaction
Transaction Semantics for Container-Managed Transactions
Transaction Semantics for Bean-Managed Transactions
Handling Exceptions in EJB Transactions
About Transactions and the WLE JDBX/XA Driver
Support for Transactions Using the WLE JDBC/XA Driver
Local Versus Distributed (Global) Transactions
Transaction Contexts in WLE JDBC/XA Connections
JDBC Accessibility in Java Methods
JDBC/XA Accessibility in CORBA Methods
JDBC/XA Accessibility in EJB Methods
Implementing Distributed Transactions
Initializing the TransactionCurrent Object Reference
Finding the Connection Pool via JNDI
Setting Up XA Distributed Transactions
Performing a Distributed Transaction
Modifying the UBBCONFIG File to Accommodate Transactions
Step 1: Specify Application-Wide Transactions in the RESOURCES Section
Step 2: Create a Transaction Log (TLOG)
Step 3: Define Each Resource Manager (RM) and the Transaction Manager Server in the GROUPS Section
Step 4: Enable an Interface to Begin a Transaction
Modifying the Domain Configuration File to Support Transactions (WLE Servers)
Characteristics of the DMTLOGDEV, DMTLOGNAME, DMTLOGSIZE, MAXRDTRAN, and MAXTRAN Parameters
Characteristics of the AUTOTRAN and TRANTIME Parameters (WLE CORBA and TUXEDO Servers)
Sample Distributed Application Using Transactions
SERVERS, SERVICES, and ROUTING Sections
|
Copyright © 1999 BEA Systems, Inc. All rights reserved.
|