public class TransactionIntegrationImpl extends java.lang.Object implements TransactionIntegration
Constructor and Description |
---|
TransactionIntegrationImpl(javax.transaction.TransactionManager tm,
javax.transaction.TransactionSynchronizationRegistry tsr,
org.jboss.tm.usertx.UserTransactionRegistry utr,
org.jboss.tm.JBossXATerminator terminator,
org.jboss.tm.XAResourceRecoveryRegistry rr)
Constructor
|
Modifier and Type | Method and Description |
---|---|
LocalXAResource |
createConnectableLocalXAResource(ConnectionManager cm,
java.lang.String productName,
java.lang.String productVersion,
java.lang.String jndiName,
ConnectableResource cr)
Create a connectable LocalXAResource instance
|
XAResourceWrapper |
createConnectableXAResourceWrapper(javax.transaction.xa.XAResource xares,
boolean pad,
java.lang.Boolean override,
java.lang.String productName,
java.lang.String productVersion,
java.lang.String jndiName,
ConnectableResource cr,
boolean firstResource)
Create a connectable XAResource wrapper instance
|
LocalXAResource |
createLocalXAResource(ConnectionManager cm,
java.lang.String productName,
java.lang.String productVersion,
java.lang.String jndiName)
Create a LocalXAResource instance
|
XAResourceRecovery |
createXAResourceRecovery(javax.resource.spi.ManagedConnectionFactory mcf,
java.lang.Boolean pad,
java.lang.Boolean override,
java.lang.Boolean wrapXAResource,
java.lang.String recoverUserName,
java.lang.String recoverPassword,
java.lang.String recoverSecurityDomain,
org.jboss.security.SubjectFactory subjectFactory,
RecoveryPlugin plugin)
Create an XAResourceRecovery instance
|
XAResourceRecovery |
createXAResourceRecovery(javax.resource.spi.ResourceAdapter rar,
javax.resource.spi.ActivationSpec as,
java.lang.String productName,
java.lang.String productVersion)
Create an XAResourceRecovery instance
|
XAResourceWrapper |
createXAResourceWrapper(javax.transaction.xa.XAResource xares,
boolean pad,
java.lang.Boolean override,
java.lang.String productName,
java.lang.String productVersion,
java.lang.String jndiName,
boolean firstResource)
Create an XAResource wrapper instance
|
XAResourceRecoveryRegistry |
getRecoveryRegistry()
Get the recovery registry
|
javax.transaction.TransactionManager |
getTransactionManager()
Get the transaction manager
|
javax.transaction.TransactionSynchronizationRegistry |
getTransactionSynchronizationRegistry()
Get the transaction synchronization registry
|
UserTransactionRegistry |
getUserTransactionRegistry()
Get the user transaction registry
|
XATerminator |
getXATerminator()
Get the XATerminator
|
public TransactionIntegrationImpl(javax.transaction.TransactionManager tm, javax.transaction.TransactionSynchronizationRegistry tsr, org.jboss.tm.usertx.UserTransactionRegistry utr, org.jboss.tm.JBossXATerminator terminator, org.jboss.tm.XAResourceRecoveryRegistry rr)
tm
- The transaction managertsr
- The transaction synchronization registryutr
- The user transaction registryterminator
- The XA terminatorrr
- The recovery registrypublic javax.transaction.TransactionManager getTransactionManager()
getTransactionManager
in interface TransactionIntegration
public javax.transaction.TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
getTransactionSynchronizationRegistry
in interface TransactionIntegration
public UserTransactionRegistry getUserTransactionRegistry()
getUserTransactionRegistry
in interface TransactionIntegration
public XAResourceRecoveryRegistry getRecoveryRegistry()
getRecoveryRegistry
in interface TransactionIntegration
public XATerminator getXATerminator()
getXATerminator
in interface TransactionIntegration
public XAResourceRecovery createXAResourceRecovery(javax.resource.spi.ResourceAdapter rar, javax.resource.spi.ActivationSpec as, java.lang.String productName, java.lang.String productVersion)
createXAResourceRecovery
in interface TransactionIntegration
rar
- The resource adapteras
- The activation specproductName
- The product nameproductVersion
- The product versionpublic XAResourceRecovery createXAResourceRecovery(javax.resource.spi.ManagedConnectionFactory mcf, java.lang.Boolean pad, java.lang.Boolean override, java.lang.Boolean wrapXAResource, java.lang.String recoverUserName, java.lang.String recoverPassword, java.lang.String recoverSecurityDomain, org.jboss.security.SubjectFactory subjectFactory, RecoveryPlugin plugin)
createXAResourceRecovery
in interface TransactionIntegration
mcf
- The managed connection factorypad
- Should the branch qualifier for Xid's be paddedoverride
- Should the isSameRM value be overriden; null
for instance equally checkwrapXAResource
- Should the XAResource be wrappedrecoverUserName
- The user name for recoveryrecoverPassword
- The password for recoveryrecoverSecurityDomain
- The security domain for recoverysubjectFactory
- The subject factoryplugin
- The recovery pluginpublic LocalXAResource createConnectableLocalXAResource(ConnectionManager cm, java.lang.String productName, java.lang.String productVersion, java.lang.String jndiName, ConnectableResource cr)
createConnectableLocalXAResource
in interface TransactionIntegration
cm
- The connection managerproductName
- The product nameproductVersion
- The product versionjndiName
- The JNDI name for the resourcecr
- The connectable resourcepublic LocalXAResource createLocalXAResource(ConnectionManager cm, java.lang.String productName, java.lang.String productVersion, java.lang.String jndiName)
createLocalXAResource
in interface TransactionIntegration
cm
- The connection managerproductName
- The product nameproductVersion
- The product versionjndiName
- The JNDI name for the resourcepublic XAResourceWrapper createConnectableXAResourceWrapper(javax.transaction.xa.XAResource xares, boolean pad, java.lang.Boolean override, java.lang.String productName, java.lang.String productVersion, java.lang.String jndiName, ConnectableResource cr, boolean firstResource)
createConnectableXAResourceWrapper
in interface TransactionIntegration
xares
- The XAResource instancepad
- Should the branch qualifier for Xid's be paddedoverride
- Should the isSameRM value be overriden; null
for instance equally checkproductName
- The product nameproductVersion
- The product versionjndiName
- The JNDI name for the resourcecr
- The connectable resourcefirstResource
- Is the resource a first resourcepublic XAResourceWrapper createXAResourceWrapper(javax.transaction.xa.XAResource xares, boolean pad, java.lang.Boolean override, java.lang.String productName, java.lang.String productVersion, java.lang.String jndiName, boolean firstResource)
createXAResourceWrapper
in interface TransactionIntegration
xares
- The XAResource instancepad
- Should the branch qualifier for Xid's be paddedoverride
- Should the isSameRM value be overriden; null
for instance equally checkproductName
- The product nameproductVersion
- The product versionjndiName
- The JNDI name for the resourcefirstResource
- Is the resource a first resourceCopyright © 2013 IronJacamar (http://www.ironjacamar.org)