org.jboss.jca.core.spi.transaction
Interface TransactionIntegration


public interface TransactionIntegration

This interface defines the contract for a transaction manager integration with the IronJacamar container. The methods allows the IronJacamar container to create or get transaction related information from the transaction manager implementation and allows the implementation of this information to be specific for each instance of this interface. If a feature isn't supported by the transaction manager a null value should be returned. That way it is disabled in the IronJacamar container.

Author:
Jesper Pedersen

Method Summary
 LocalXAResource createLocalXAResource(ConnectionManager cm)
          Create a LocalXAResource instance
 XAResourceRecovery createXAResourceRecovery(javax.resource.spi.ManagedConnectionFactory mcf, Boolean pad, Boolean override, Boolean wrapXAResource, String recoverUserName, String recoverPassword, String recoverSecurityDomain, org.jboss.security.SubjectFactory subjectFactory, RecoveryPlugin plugin)
          Create an XAResourceRecovery instance
 XAResourceWrapper createXAResourceWrapper(XAResource xares, boolean pad, Boolean override, String productName, String productVersion, String jndiName)
          Create an XAResource wrapper instance
 XAResourceRecoveryRegistry getRecoveryRegistry()
          Get the recovery registry
 TransactionManager getTransactionManager()
          Get the transaction manager
 TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
          Get the transaction synchronization registry
 UserTransactionRegistry getUserTransactionRegistry()
          Get the user transaction registry
 XATerminator getXATerminator()
          Get the XATerminator
 

Method Detail

getTransactionManager

TransactionManager getTransactionManager()
Get the transaction manager

Returns:
The value

getTransactionSynchronizationRegistry

TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
Get the transaction synchronization registry

Returns:
The value

getUserTransactionRegistry

UserTransactionRegistry getUserTransactionRegistry()
Get the user transaction registry

Returns:
The value

getRecoveryRegistry

XAResourceRecoveryRegistry getRecoveryRegistry()
Get the recovery registry

Returns:
The value

getXATerminator

XATerminator getXATerminator()
Get the XATerminator

Returns:
The value

createXAResourceRecovery

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

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

LocalXAResource createLocalXAResource(ConnectionManager cm)
Create a LocalXAResource instance

Parameters:
cm - The connection manager
Returns:
The value

createXAResourceWrapper

XAResourceWrapper createXAResourceWrapper(XAResource xares,
                                          boolean pad,
                                          Boolean override,
                                          String productName,
                                          String productVersion,
                                          String jndiName)
Create an XAResource wrapper instance

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/)