Marktplatzangebote
Ein Angebot für € 26,98 €
  • Broschiertes Buch

Provides a comprehensive explanation of J2EE and Java from a transactional perspective--needed to exploit the technology correctly.
Explains transaction processing in theory and practice by highlighting the "under the hood" aspects of application servers and J2EE APIs. Goes beyond J2EE, allowing Java developers to interoperate with other systems while tackling issues with web services and XML. Authored by visible members of the Java community--heavily involved with the Java platform at Hewlett Packard.
Transaction processing is at the heart of modern enterprise systems. This book
…mehr

Produktbeschreibung
Provides a comprehensive explanation of J2EE and Java from a transactional perspective--needed to exploit the technology correctly.

Explains transaction processing in theory and practice by highlighting the "under the hood" aspects of application servers and J2EE APIs.
Goes beyond J2EE, allowing Java developers to interoperate with other systems while tackling issues with web services and XML.
Authored by visible members of the Java community--heavily involved with the Java platform at Hewlett Packard.

Transaction processing is at the heart of modern enterprise systems. This book explains in depth transaction processing technology and how it can be leveraged in the Java platform. It provides a comprehensive explanation of the underlying concepts in transactions that are needed to understand and exploit the technology correctly. All technical information delivered in the book corresponds directly to the latest revision of Java. The authors cover how transactional aspects of all the major J2EE components work and the practical consequences of implementation choices. In addition, this text looks beyond Java at standards and implementations that provide for broad interoperability across heterogeneous application environments. Finally, the book provides a look at how emerging web services standards will address the next generation of reliable information systems.
Product Description
Transaction processing is at the heart of modern enterprise systems. This book explains in depth transaction processing technology and how it can be leveraged in the Java platform. It provides a comprehensive explanation of the underlying concepts in transactions that are needed to understand and exploit the technology correctly. All technical information delivered in the book corresponds directly to the latest revision of Java. The authors cover how transactional aspects of all the major J2EE components work and the practical consequences of implementation choices. In addition, this text looks beyond Java at standards and implementations that provide for broad interoperability across heterogeneous application environments. Finally, the book provides a look at how emerging web services standards will address the next generation of reliable information systems.

Backcover
The authors have addressed all transactions related issues faced by java developers in a single book.
-Debabrata Panda, Principal Product Manager, EJB & Transactions, Oracle Application Server Development, Oracle Corporation

Java Transaction Processing: Design and Implementation The J2EE transactions guide for serious enterprise developers This is the definitive guide to leveraging transactions using state-of-the-art J2EE technologies. The authors offer clear, comprehensive explanations of underlying transaction concepts, and deep insights into J2EE and Java from a transactional perspective. They also introduce emerging standards and implementations that will enable broad interoperability across heterogeneous environments-including new Web services standards for building far more reliable systems. Coverage includes:

The fundamentals of distributed transactions

Transaction models and their representation in Java, including both JTA and JTS

Transactional connectivity to relational databases through JDBC

JMS facilities for local and distributed transactions

Transactional support provided by Enterprise JavaBeans (EJB)

Transactional interactions via the Java Connector Architecture (JCA)

Key J2EE architectural considerations for mission-critical transactional applications

Planned modifications to J2EE to support new distributed application paradigms

No other book offers developers, architects, and integrators as sophisticated an understanding of J2EE transactions-or more practical guidance on exploiting them in mission-critical applications.

On the Web site:

Links to trial versions of Oracle Application Server and Arjuna Transaction Service - enterprise-grade commercial implementations of the Java transactional technologies covered in this book.

Working code downloads for examples in the book.

013035290XB07232004 Foreword by Steven G. Harris.

Foreword by Eric Newcomer.

Preface.

Acknowledgments.

I. JAVA TRANSACTIONS FUNDAMENTALS.

1. Transactions Fundamentals.

What Are Transactions and Why Do I Need Them?

Atomicity.

Consistency.

Isolation (Serializability).

Two-Phase Concurrency Control.

Optimistic Versus Pessimistic Concurrency Control.

Type-Specific Concurrency Control.

Deadlock Detection and Prevention.

Durability.

Services and Participants.

Two-Phase Commit Optimizations.

Synchronizations.

Heuristic Transactions.

The Transaction Log.

Failure Recovery.

Trust Implications.

Types of Transactions.

Nested Transactions.

Independent Top-Level Transactions.

Concurrent Transactions.

Glued Transactions.

Distributed Transactions.

The Transaction Context.

Interposition.

Controlling a Transaction.

Transactions and Threads.

Checked Transactions.

Suspending and Resuming Transactionality.

Transactions and Queues.

Transactions and Replication.

Maintaining Information on Persistent Objects.

Replication Protocols.

Integrating Replication and Transactions.

Availability Measures in Current Application Servers.

Transaction Processing Monitors.

Transactions and Workflow.

Summary.

2. Foundation of Transactions in J2EE: The Java Transaction API.

What Is the DTP?

Java Transaction API.

Application Level Transaction Management in Java.

UserTransaction Interface.

TransactionManager Interface.

Suspending and Resuming a Transaction.

Transaction Interface.

Transaction Status.

Resource Enlistment.

Transaction Synchronization.

JTA-DTP Discrepancies.

Transaction Manager to Resource Manager Interfaces.

XID Interface 80

XAResource Interface.

Thread of Control.

Transaction Association.

Opening a Resource Manager.

Closing a Resource Manager.

Putting the JTA APIs Together.

Architectural Considerations.

Failure Recovery.

Tree of Process Model.

Transaction Interoperability.

Protocol Bridges.

Last Resource Commit.

Conclusion.

3. The Java Transaction Service.

The OTS in a Nutshell.

The Java Transaction Service.

Relationship to Other Transaction Standards.

The OTS Architecture.

Application Programming Models.

The Transaction Factory.

Managing Transaction Contexts.

Nested Transactions.

Transaction Propagation.

TransactionalObject Interface.

OTSPolicy.

Examples.

Handling Heuristics.

Transaction Controls.

The Terminator.

The Coordinator.

Current.

Participating in an OTS Transaction.

Resource.

SubtransactionAwareResource.

Synchronization.

Participant Relationships.

Transactions and Registered Resources.

The RecoveryCoordinator.

Interposition.

Shared and Unshared Transactions.

Checked Transaction Behavior.

Transaction Interoperability.

Writing Applications Using OTS Interfaces.

Transaction Context Management.

A Transaction Originator: Indirect Context Management and Implicit Propagation.

Transaction Originator: Direct Context Management and Explicit Propagation.

Implementing a Recoverable Server.

Transactional Object.

Resource Object.

An Example of a Recoverable Server.

Example of a Transactional Object.

Worked Example.

Resource.

Transactional Implementation.

Server Implementation.

Client Implementation.

Sequence Diagram.

Choosing an OTS Implementation.

Summary.

II. TRANSACTIONS IN J2EE.

4. JDBC and Transactions.

The Basic JDBC Model.

java.sql.Connection.

Types of JDBC Drivers.

Transaction Isolation Levels.

Implications of Relaxed Isolation.

Dirty Reads.

Non-repeatable Reads.

Phantom Reads.

Isolation Constraints.

TRANSACTION_NONE.

TRANSACTION_READ_UNCOMMITTED.

TRANSACTION_READ_COMMITED.

TRANSACTION_REPEATABLE_READ.

TRANSACTION_SERIALIZABLE.

Local Transactions.

JDBC 2.0 Advanced Features.

Batch Updates.

Updateable Result Sets.

Distributed Transactions.

XADataSource and XAConnection Interfaces.

XAResource Interface.

Connection Management.

Summary.

5. JMS and Transactions.

What Is Message-Oriented Middleware?

Java Message Service.

Message Acknowledgement.

AUTO_ACKNOWLEDGE Mode.

DUPS_OK_ACKNOWLEDGE Mode.

CLIENT_ACKNOWLEDGE Mode.

JMS Local Transactions.

JMS 1.1 Improvements.

Global Transactions.

XAConnectionFactory.

XAConnection.

XASession.

Application Server Integration.

Example Application.

Summary.

6. EnterpriseJavaBeans and Transactions.

What Are EJBs?

Transaction Support.

Container-Managed Transactions.

Specifying Container-Managed Transactions.

Bean-Managed Transactions.

BMT vs. CMT.

Error Handling.

Bean Types and Transactions.

Optimistic Locking.

Pessimistic Locking.

Commit Options.

Isolation Levels.

Message-Driven Beans.

Managing MDB Transactions.

Bean-Managed Transactions.

Container-Managed Transactions.

Transaction Context Propagation.

Summary.

7. J2EE Connector Architecture and Transactions.

Enterprise Application Integration.

Integration Servers.

Web Services.

Inside J2C.

CCI.

javax.resource.cci.Connection.

javax.resource.cci.ConnectionFactory.

javax.resource.cci.Record.

javax.resource.cci.Interaction.

javax.resource.cci.InteractionSpec.

CCI Example 242

SPI.

javax.resource.spi.ManagedConnection.

javax.resource.spi.ManagedConnectionFactory.

Connection Management.

Transaction Management.

NoTransaction.

Local Transactions.

SPI LocalTransaction Interface.

CCI LocalTransaction Interface.

Sample Scenario.

Distributed Transactions.

J2C Futures.

Summary.

III. THE FUTURE OF TRANSACTIONS IN J2EE AND WEB SERVICES.

8. Advanced Transaction Concepts.

Is Java Suitable for High Performance Transaction Systems?

Compiled versus Interpreted.

The Web-Effect on Transaction Systems.

Java and E-commerce.

The 100% Solution.

Conclusion.

End-to-End Transactional Guarantees.

End-to-End Transactions and the New Generation of Transaction Systems.

Is End-to-End Transactionality Possible at All?

Online Transaction Processing versus Object-Oriented Transaction Processing.

The OTS and End-to-End Transactionality.

The CORBA Effect.

The J2EE Effect.

Application Servers and Thin Clients.

Conclusions.

The Usefulness of Interposition.

The Universal Adapter.

Object Decomposition to Improve Throughput.

Summary.

9. The J2EE Activity Service.

When ACID Is Too Strong.

The Proposed J2EE Solution.

Activities, Participants and Coordination.

Relationship to the J2EE Architecture.

Coordinating Activities.

The High-Level Service (HLS).

Actions, SignalSets and Signals.

SignalSets.

Example Extended Transaction Models.

Two-Phase Commit.

Nested Top-Level Transactions with Compensations.

Workflow Coordination.

Where Do I Get an Activity Service?

Summary.

10. Transactions and Web Services.

Some Common Featu
The authors have addressed all transactions related issues faced by java developers in a single book.
-Debabrata Panda, Principal Product Manager, EJB & Transactions, Oracle Application Server Development, Oracle Corporation
Java Transaction Processing: Design and Implementation The J2EE transactions guide for serious enterprise developers
This is the definitive guide to leveraging transactions using state-of-the-art J2EE technologies. The authors offer clear, comprehensive explanations of underlying transaction concepts, and deep insights into J2EE and Java from a transactional perspective. They also introduce emerging standards and implementations that will enable broad interoperability across heterogeneous environments-including new Web services standards for building far more reliable systems. Coverage includes:

The fundamentals of distributed transactions
Transaction models and their representation in Java, including both JTA and JTS
Transactional connectivity to relational databases through JDBC
JMS facilities for local and distributed transactions
Transactional support provided by Enterprise JavaBeans (EJB)
Transactional interactions via the Java Connector Architecture (JCA)
Key J2EE architectural considerations for mission-critical transactional applications
Planned modifications to J2EE to support new distributed application paradigms

No other book offers developers, architects, and integrators as sophisticated an understanding of J2EE transactions-or more practical guidance on exploiting them in mission-critical applications.

On the Web site:

Links to trial versions of Oracle Application Server and Arjuna Transaction Service - enterprise-grade commercial implementations of the Java transactional technologies covered in this book.
Working code downloads for examples in the book.

013035290XB07232004