org.jboss.jca.core.tx.jbossts
Class TransactionIntegrationImpl

java.lang.Object
  extended by org.jboss.jca.core.tx.jbossts.TransactionIntegrationImpl
All Implemented Interfaces:
org.jboss.jca.core.spi.transaction.TransactionIntegration

public class TransactionIntegrationImpl
extends Object
implements org.jboss.jca.core.spi.transaction.TransactionIntegration

This class provide an implementation of the transaction integration for the IronJacamar container using JBossTS.

Author:
Jesper Pedersen

Constructor Summary
TransactionIntegrationImpl(TransactionManager tm, TransactionSynchronizationRegistry tsr, org.jboss.tm.usertx.UserTransactionRegistry utr, org.jboss.tm.JBossXATerminator terminator, org.jboss.tm.XAResourceRecoveryRegistry rr)
          Constructor
 
Method Summary
 org.jboss.jca.core.spi.transaction.local.LocalXAResource createLocalXAResource(org.jboss.jca.core.api.connectionmanager.ConnectionManager cm)
          Create a LocalXAResource instance
 org.jboss.jca.core.spi.transaction.recovery.XAResourceRecovery createXAResourceRecovery(javax.resource.spi.ManagedConnectionFactory mcf, Boolean pad, Boolean override, Boolean wrapXAResource, String recoverUserName, String recoverPassword, String recoverSecurityDomain, org.jboss.security.SubjectFactory subjectFactory, org.jboss.jca.core.spi.recovery.RecoveryPlugin plugin)
          Create an XAResourceRecovery instance
 org.jboss.jca.core.spi.transaction.xa.XAResourceWrapper createXAResourceWrapper(XAResource xares, boolean pad, Boolean override, String productName, String productVersion, String jndiName)
          Create an XAResource wrapper instance
 org.jboss.jca.core.spi.transaction.recovery.XAResourceRecoveryRegistry getRecoveryRegistry()
          Get the recovery registry
 TransactionManager getTransactionManager()
          Get the transaction manager
 TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
          Get the transaction synchronization registry
 org.jboss.jca.core.spi.transaction.usertx.UserTransactionRegistry getUserTransactionRegistry()
          Get the user transaction registry
 org.jboss.jca.core.spi.transaction.xa.XATerminator getXATerminator()
          Get the XATerminator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionIntegrationImpl

public TransactionIntegrationImpl(TransactionManager tm,
                                  TransactionSynchronizationRegistry tsr,
                                  org.jboss.tm.usertx.UserTransactionRegistry utr,
                                  org.jboss.tm.JBossXATerminator terminator,
                                  org.jboss.tm.XAResourceRecoveryRegistry rr)
Constructor

Parameters:
tm - The transaction manager
tsr - The transaction synchronization registry
utr - The user transaction registry
terminator - The XA terminator
rr - The recovery registry
Method Detail

getTransactionManager

public TransactionManager getTransactionManager()
Get the transaction manager

Specified by:
getTransactionManager in interface org.jboss.jca.core.spi.transaction.TransactionIntegration
Returns:
The value

getTransactionSynchronizationRegistry

public TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
Get the transaction synchronization registry

Specified by:
getTransactionSynchronizationRegistry in interface org.jboss.jca.core.spi.transaction.TransactionIntegration
Returns:
The value

getUserTransactionRegistry

public org.jboss.jca.core.spi.transaction.usertx.UserTransactionRegistry getUserTransactionRegistry()
Get the user transaction registry

Specified by:
getUserTransactionRegistry in interface org.jboss.jca.core.spi.transaction.TransactionIntegration
Returns:
The value

getRecoveryRegistry

public org.jboss.jca.core.spi.transaction.recovery.XAResourceRecoveryRegistry getRecoveryRegistry()
Get the recovery registry

Specified by:
getRecoveryRegistry in interface org.jboss.jca.core.spi.transaction.TransactionIntegration
Returns:
The value

getXATerminator

public org.jboss.jca.core.spi.transaction.xa.XATerminator getXATerminator()
Get the XATerminator

Specified by:
getXATerminator in interface org.jboss.jca.core.spi.transaction.TransactionIntegration
Returns:
The value

createXAResourceRecovery

public org.jboss.jca.core.spi.transaction.recovery.XAResourceRecovery createXAResourceRecovery(javax.resource.spi.ManagedConnectionFactory mcf,
                                                                                               Boolean pad,
                                                                                               Boolean override,
                                                                                               Boolean wrapXAResource,
                                                                                               String recoverUserName,
                                                                                               String recoverPassword,
                                                                                               String recoverSecurityDomain,
                                                                                               org.jboss.security.SubjectFactory subjectFactory,
                                                                                               org.jboss.jca.core.spi.recovery.RecoveryPlugin plugin)
Create an XAResourceRecovery instance

Specified by:
createXAResourceRecovery in interface org.jboss.jca.core.spi.transaction.TransactionIntegration
Parameters:
mcf - The managed connection factory
pad - Should the branch qualifier for Xid's be padded
override - Should the isSameRM value be overriden; null for instance equally check
wrapXAResource - Should the XAResource be wrapped
recoverUserName - The user name for recovery
recoverPassword - The password for recovery
recoverSecurityDomain - The security domain for recovery
subjectFactory - The subject factory
plugin - The recovery plugin
Returns:
The value

createLocalXAResource

public org.jboss.jca.core.spi.transaction.local.LocalXAResource createLocalXAResource(org.jboss.jca.core.api.connectionmanager.ConnectionManager cm)
Create a LocalXAResource instance

Specified by:
createLocalXAResource in interface org.jboss.jca.core.spi.transaction.TransactionIntegration
Parameters:
cm - The connection manager
Returns:
The value

createXAResourceWrapper

public org.jboss.jca.core.spi.transaction.xa.XAResourceWrapper createXAResourceWrapper(XAResource xares,
                                                                                       boolean pad,
                                                                                       Boolean override,
                                                                                       String productName,
                                                                                       String productVersion,
                                                                                       String jndiName)
Create an XAResource wrapper instance

Specified by:
createXAResourceWrapper in interface org.jboss.jca.core.spi.transaction.TransactionIntegration
Parameters:
xares - The XAResource instance
pad - Should the branch qualifier for Xid's be padded
override - Should the isSameRM value be overriden; null for instance equally check
productName - The product name
productVersion - The product version
jndiName - The JNDI name for the resource
Returns:
The value


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)