public final class SQLServerXADataSource extends SQLServerConnectionPoolDataSource implements XADataSource
Because they extend the PooledConnection interface, XAConnection objects support all the methods of PooledConnection objects. They are reusable physical connections to an underlying data source and produce logical connection handles that can be passed back to a JDBC application.
XAConnection objects are produced by an XADataSource object. There is some similarity between ConnectionPoolDataSource objects and XADataSource
objects in that they are both implemented below a DataSource layer that is visible to the JDBC application. This architecture allows sqlserver to
support distributed transactions in a way that is transparent to the application.
SQLServerXADataSource can be configured to integrate with Microsoft Distributed Transaction Coordinator (DTC) to provide true, distributed
transaction processing.
Constructor and Description |
---|
SQLServerXADataSource() |
Modifier and Type | Method and Description |
---|---|
Reference |
getReference() |
XAConnection |
getXAConnection()
Obtain a physical database connection to particate in an XA transaction.
|
XAConnection |
getXAConnection(String user,
String password)
Obtain a physical database connection to particate in an XA transaction with the specified user and password.
|
getPooledConnection, getPooledConnection
getAccessToken, getApplicationIntent, getApplicationName, getAuthentication, getColumnEncryptionSetting, getConnection, getConnection, getDatabaseName, getDescription, getEnablePrepareOnFirstPreparedStatementCall, getEncrypt, getFailoverPartner, getFIPS, getGSSCredentials, getHostNameInCertificate, getInstanceName, getJASSConfigurationName, getKeyStoreAuthentication, getKeyStoreLocation, getLastUpdateCount, getLockTimeout, getLoginTimeout, getLogWriter, getMultiSubnetFailover, getPacketSize, getParentLogger, getPortNumber, getQueryTimeout, getResponseBuffering, getSelectMethod, getSendStringParametersAsUnicode, getSendTimeAsDatetime, getServerName, getServerNameAsACE, getServerPreparedStatementDiscardThreshold, getServerSpn, getSocketTimeout, getSSLProtocol, getStatementPoolingCacheSize, getTransparentNetworkIPResolution, getTrustServerCertificate, getTrustStore, getTrustStoreType, getURL, getUser, getWorkstationID, getXopenStates, isWrapperFor, setAccessToken, setApplicationIntent, setApplicationName, setAuthentication, setAuthenticationScheme, setColumnEncryptionSetting, setDatabaseName, setDescription, setEnablePrepareOnFirstPreparedStatementCall, setEncrypt, setFailoverPartner, setFIPS, setGSSCredentials, setHostNameInCertificate, setInstanceName, setIntegratedSecurity, setJASSConfigurationName, setKeyStoreAuthentication, setKeyStoreLocation, setKeyStoreSecret, setLastUpdateCount, setLockTimeout, setLoginTimeout, setLogWriter, setMultiSubnetFailover, setPacketSize, setPassword, setPortNumber, setQueryTimeout, setResponseBuffering, setSelectMethod, setSendStringParametersAsUnicode, setSendTimeAsDatetime, setServerName, setServerNameAsACE, setServerPreparedStatementDiscardThreshold, setServerSpn, setSocketTimeout, setSSLProtocol, setStatementPoolingCacheSize, setTransparentNetworkIPResolution, setTrustServerCertificate, setTrustStore, setTrustStorePassword, setTrustStoreType, setURL, setUser, setWorkstationID, setXopenStates, toString, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
public XAConnection getXAConnection(String user, String password) throws SQLException
getXAConnection
in interface XADataSource
SQLException
- The database connection failed.public XAConnection getXAConnection() throws SQLException
getXAConnection
in interface XADataSource
SQLException
- The database connection failed.public Reference getReference()
getReference
in interface Referenceable
getReference
in class SQLServerConnectionPoolDataSource
Copyright © 2017 Microsoft Corporation. All rights reserved.