1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.sql;
  6. import java.sql.*;
  7. /**
  8. * <P>An XAConnection object provides support for distributed
  9. * transactions. An XAConnection may be enlisted in a distributed
  10. * transaction by means of an XAResource object.
  11. */
  12. public interface XAConnection extends PooledConnection {
  13. /**
  14. * <P>Return an XA resource to the caller.
  15. *
  16. * @return the XAResource
  17. * @exception SQLException if a database-access error occurs
  18. */
  19. javax.transaction.xa.XAResource getXAResource() throws SQLException;
  20. }