public class JdbcTransactionalResource extends XATransactionalResource
xares_| Constructor and Description |
|---|
JdbcTransactionalResource(String serverName,
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 XAResource |
refreshXAConnection()
Implements the functionality to get an XAResource handle.
|
void |
setPassword(String password)
Optionally set the password with which to get connections for recovery.
|
void |
setUser(String user)
Optionally set the user name with which to get connections for recovery.
|
createXid, equals, getName, getResourceTransaction, getXAResource, getXidFactory, hashCode, isClosed, isSameRM, needsRefresh, recover, setRecoveryService, setXidFactory, usesXAResourcepublic JdbcTransactionalResource(String serverName, XADataSource xads)
serverName - The unique name.xads - The data source.protected XAResource refreshXAConnection() throws ResourceException
refreshXAConnection in class XATransactionalResourceResourceException - On failure.public void setUser(String user)
user - The user name.public void setPassword(String password)
password - The password.public void close()
throws ResourceException
close in interface RecoverableResourceclose in class XATransactionalResourceResourceExceptionCopyright © 2023. All rights reserved.