O'Reilly logo

Database Programming with JDBC & Java, Second Edition by George Reese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

XAConnection

Synopsis

Interface Name: javax.sql.XAConnection

Superclass: javax.sql.PooledConnection

Immediate Subclasses: None

Interfaces Implemented: None

Availability: New as of JDK 1.2

Description

This class represents a connection in a distributed transaction. An XAConnection instance is enlisted in a distributed transaction via a javax.transaction.xa.XAResource object.

Class Summary

public interface XAConnection {
    javax.transaction.xa.XAResource getXAResource( )
      throws java.sql.SQLException;
}

Object Methods

getXAResource( )

public javax.transaction.xa.XARResource getXAResource( )
  throws java.sql.SQLException;
Description

This method provides the XA resource behind this connection.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required