public class JdbcTransactionalResource extends XATransactionalResource
xares_| Constructor and Description |
|---|
JdbcTransactionalResource(java.lang.String serverName,
javax.sql.XADataSource xads)
Constructs a new instance with a given name and XADataSource.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Overrides default close to include closing any open connections to the
XADataSource.
|
protected javax.transaction.xa.XAResource |
refreshXAConnection()
Implements the functionality to get an XAResource handle.
|
void |
setPassword(java.lang.String password)
Optionally set the password with which to get connections for recovery.
|
void |
setUser(java.lang.String user)
Optionally set the user name with which to get connections for recovery.
|
acceptsAllXAResources, createXid, getName, getResourceTransaction, getXAResource, getXidFactory, isClosed, isSameRM, needsRefresh, recover, setAcceptAllXAResources, setRecoveryService, setXidFactory, usesWeakCompare, usesXAResource, useWeakComparepublic JdbcTransactionalResource(java.lang.String serverName,
javax.sql.XADataSource xads)
serverName - The unique name.xads - The data source.protected javax.transaction.xa.XAResource refreshXAConnection()
throws ResourceException
refreshXAConnection in class XATransactionalResourceResourceException - On failure.public void setUser(java.lang.String user)
user - The user name.public void setPassword(java.lang.String password)
password - The password.public void close()
throws ResourceException
close in interface RecoverableResourceclose in class XATransactionalResourceResourceExceptionCopyright © 2018. All Rights Reserved.