
public class TxConnectionManagerImpl extends AbstractConnectionManager implements TxConnectionManager
enlistment, trace| Constructor and Description |
|---|
TxConnectionManagerImpl(org.jboss.jca.core.spi.transaction.TransactionIntegration txIntegration,
boolean localTransactions)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionListener |
createConnectionListener(javax.resource.spi.ManagedConnection mc,
ManagedConnectionPool mcp)
Create a managed connection listener for the managed connection.
|
Boolean |
getIsSameRMOverride()
Get the IsSameRMOverride value
|
protected CoreLogger |
getLogger()
Get the logger.
|
ConnectionListener |
getManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Public for use in testing pooling functionality by itself.
|
boolean |
getPadXid()
Get PadXis status
|
long |
getTimeLeftBeforeTransactionTimeout(boolean errorRollback)
Gets time left.
|
org.jboss.jca.core.spi.transaction.TransactionIntegration |
getTransactionIntegration()
Get the transaction integration instance
|
int |
getTransactionTimeout()
Get the transaction timeout.
|
boolean |
getWrapXAResource()
Returns true if wrap xa resource.
|
int |
getXAResourceTimeout()
Gets XA resource transaction time out.
|
boolean |
isAllowMarkedForRollback()
Is allow marked for rollback enabled
|
boolean |
isInterleaving()
Gets interleaving flag.
|
boolean |
isLocalTransactions()
Returns local tx or not.
|
boolean |
isTransactional()
Determine whether there connection is a transactional.
|
void |
lazyEnlist(javax.resource.spi.ManagedConnection mc) |
protected void |
managedConnectionDisconnected(ConnectionListener cl)
For polymorphism.
|
protected void |
managedConnectionReconnected(ConnectionListener cl)
For polymorphism.
|
static void |
rethrowAsSystemException(String context,
Transaction tx,
Throwable t)
RethrowAsSystemException.
|
void |
setInterleaving(boolean value)
Sets interleaving flag.
|
void |
setIsSameRMOverride(Boolean v)
Set the IsSameRMOverride value.
|
void |
setPadXid(boolean v)
Set if the Xid should be padded
|
void |
setWrapXAResource(boolean v)
Set if the XAResource should be wrapped
|
void |
setXAResourceTimeout(int timeout)
Sets XA resource transaction timeout.
|
void |
transactionStarted(Collection<ConnectionRecord> crs)
Notification of transaction started
|
allocateConnection, associateConnection, associateManagedConnection, disconnect, disconnectManagedConnection, dissociateManagedConnection, getAllocationRetry, getAllocationRetryWaitMillis, getCachedConnectionManager, getFlushStrategy, getJndiName, getManagedConnection, getManagedConnectionFactory, getPool, getSecurityDomain, getSubjectFactory, inactiveConnectionClosed, isEnlistment, isSharable, reconnect, reconnectManagedConnection, returnManagedConnection, setAllocationRetry, setAllocationRetryWaitMillis, setCachedConnectionManager, setEnlistment, setFlushStrategy, setJndiName, setPool, setSecurityDomain, setSharable, setSubjectFactory, shutdown, unregisterAssociationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllocationRetry, getAllocationRetryWaitMillis, getCachedConnectionManager, getJndiName, getPool, getSecurityDomain, getSubjectFactory, isEnlistment, isSharable, setJndiName, shutdown, unregisterAssociationassociateManagedConnection, dissociateManagedConnection, returnManagedConnectionassociateConnection, inactiveConnectionCloseddisconnect, reconnectpublic TxConnectionManagerImpl(org.jboss.jca.core.spi.transaction.TransactionIntegration txIntegration,
boolean localTransactions)
txIntegration - The transaction integration layerlocalTransactions - Is local transactions enabledprotected CoreLogger getLogger()
getLogger in class AbstractConnectionManagerpublic org.jboss.jca.core.spi.transaction.TransactionIntegration getTransactionIntegration()
getTransactionIntegration in class AbstractConnectionManagerpublic boolean isInterleaving()
isInterleaving in interface TxConnectionManagerpublic void setInterleaving(boolean value)
value - interleavingpublic boolean isLocalTransactions()
isLocalTransactions in interface TxConnectionManagerpublic int getXAResourceTimeout()
getXAResourceTimeout in interface TxConnectionManagerpublic void setXAResourceTimeout(int timeout)
timeout - xa resource transaction timeoutpublic Boolean getIsSameRMOverride()
getIsSameRMOverride in interface TxConnectionManagerpublic void setIsSameRMOverride(Boolean v)
v - The valuepublic boolean getWrapXAResource()
getWrapXAResource in interface TxConnectionManagerpublic void setWrapXAResource(boolean v)
v - The valuepublic boolean getPadXid()
getPadXid in interface TxConnectionManagerpublic void setPadXid(boolean v)
v - The valuepublic boolean isAllowMarkedForRollback()
isAllowMarkedForRollback in interface TxConnectionManagerTrue if set, otherwise falsepublic long getTimeLeftBeforeTransactionTimeout(boolean errorRollback)
throws RollbackException
getTimeLeftBeforeTransactionTimeout in interface org.jboss.jca.core.spi.transaction.TransactionTimeoutConfigurationerrorRollback - error rollbackRollbackException - if exceptionpublic ConnectionListener getManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cri) throws javax.resource.ResourceException
getManagedConnection in class AbstractConnectionManagersubject - a Subject valuecri - a ConnectionRequestInfo valueManagedConnection valuejavax.resource.ResourceException - if an error occurspublic void transactionStarted(Collection<ConnectionRecord> crs) throws SystemException
transactionStarted in class AbstractConnectionManagercrs - the connectionsSystemException - for any errorprotected void managedConnectionReconnected(ConnectionListener cl) throws javax.resource.ResourceException
Do not invoke directly, use reconnectManagedConnection which does the relevent exception handling
managedConnectionReconnected in class AbstractConnectionManagercl - connection listenerjavax.resource.ResourceException - for exceptionprotected void managedConnectionDisconnected(ConnectionListener cl) throws javax.resource.ResourceException
Do not invoke directly, use disconnectManagedConnection which does the relevent exception handling
managedConnectionDisconnected in class AbstractConnectionManagercl - connection listenerjavax.resource.ResourceException - for exceptionpublic ConnectionListener createConnectionListener(javax.resource.spi.ManagedConnection mc, ManagedConnectionPool mcp) throws javax.resource.ResourceException
mc - the managed connectionmcp - the managed connection pooljavax.resource.ResourceException - for any errorpublic boolean isTransactional()
isTransactional in class AbstractConnectionManagerpublic int getTransactionTimeout()
throws SystemException
getTransactionTimeout in interface org.jboss.jca.core.spi.transaction.TransactionTimeoutConfigurationSystemException - For any errorpublic void lazyEnlist(javax.resource.spi.ManagedConnection mc)
throws javax.resource.ResourceException
lazyEnlist in interface javax.resource.spi.LazyEnlistableConnectionManagerlazyEnlist in class AbstractConnectionManagerjavax.resource.ResourceExceptionpublic static void rethrowAsSystemException(String context, Transaction tx, Throwable t) throws SystemException
context - contexttx - transactiont - throwableSystemException - system exceptionCopyright © 2013 IronJacamar (http://www.ironjacamar.org)