
public class TxConnectionListener extends AbstractConnectionListener
| Modifier and Type | Class and Description |
|---|---|
class |
TxConnectionListener.TransactionSynchronization
Transaction sync. class.
|
connectionHandles, connectionTraces, tracking| Constructor and Description |
|---|
TxConnectionListener(ConnectionManager cm,
javax.resource.spi.ManagedConnection mc,
Pool pool,
ManagedConnectionPool mcp,
org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy,
java.lang.Boolean tracking,
java.lang.Boolean enlistmentTrace,
javax.transaction.xa.XAResource xaResource,
int xaResourceTimeout)
Creates a new tx listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectionClosed(javax.resource.spi.ConnectionEvent ce) |
boolean |
delist()
Delist the managed connection
|
void |
dissociate()
Dissociate the connection listener
|
void |
enlist()
Enlist the managed connection
|
protected CoreLogger |
getLogger()
Get the logger
|
protected javax.transaction.xa.XAResource |
getXAResource()
Get XA resource.
|
boolean |
isManagedConnectionFree()
Is the managed connection free?
|
void |
localTransactionCommitted(javax.resource.spi.ConnectionEvent ce) |
void |
localTransactionRolledback(javax.resource.spi.ConnectionEvent ce) |
void |
localTransactionStarted(javax.resource.spi.ConnectionEvent ce) |
void |
tidyup()
Tidyup
Invoked just before returning the connection to the pool when the
connection is not being destroyed.
|
void |
toPool()
Mark the connection as in pool
|
protected void |
toString(java.lang.StringBuffer buffer)
Add specific properties.
|
compareTo, connectionErrorOccurred, controls, destroy, getCachedConnectionManager, getConnectionManager, getException, getLastCheckedOutTime, getLastReturnedTime, getLastValidatedTime, getManagedConnection, getManagedConnectionPool, getNumberOfConnections, getPool, getState, handleClosed, handleCreated, isEnlisted, isTimedOut, isTrackByTx, registerConnection, setLastCheckedOutTime, setLastValidatedTime, setState, setTrackByTx, supportsLazyAssociation, supportsLazyEnlistment, toString, unregisterConnection, unregisterConnectionspublic TxConnectionListener(ConnectionManager cm, javax.resource.spi.ManagedConnection mc, Pool pool, ManagedConnectionPool mcp, org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy, java.lang.Boolean tracking, java.lang.Boolean enlistmentTrace, javax.transaction.xa.XAResource xaResource, int xaResourceTimeout) throws javax.resource.ResourceException
cm - connection managermc - managed connectionpool - poolmcp - mcpflushStrategy - flushStrategytracking - trackingenlistmentTrace - enlistmentTracexaResource - xaresource instancexaResourceTimeout - timeout for the XAResourcejavax.resource.ResourceException - if aexception while creatingprotected CoreLogger getLogger()
getLogger in class AbstractConnectionListenerpublic void toPool()
toPool in class AbstractConnectionListenerpublic void enlist()
throws javax.transaction.SystemException
enlist in class AbstractConnectionListenerjavax.transaction.SystemException - for errorspublic boolean delist()
throws javax.resource.ResourceException
delist in class AbstractConnectionListenerTrue if the listener was delisted succesfully, otherwise falsejavax.resource.ResourceException - if exception occurspublic void dissociate()
throws javax.resource.ResourceException
dissociate in class AbstractConnectionListenerjavax.resource.ResourceException - if exception occursprotected javax.transaction.xa.XAResource getXAResource()
public void connectionClosed(javax.resource.spi.ConnectionEvent ce)
connectionClosed in interface javax.resource.spi.ConnectionEventListenerconnectionClosed in class AbstractConnectionListenerpublic void localTransactionStarted(javax.resource.spi.ConnectionEvent ce)
localTransactionStarted in interface javax.resource.spi.ConnectionEventListenerlocalTransactionStarted in class AbstractConnectionListenerpublic void localTransactionCommitted(javax.resource.spi.ConnectionEvent ce)
localTransactionCommitted in interface javax.resource.spi.ConnectionEventListenerlocalTransactionCommitted in class AbstractConnectionListenerpublic void localTransactionRolledback(javax.resource.spi.ConnectionEvent ce)
localTransactionRolledback in interface javax.resource.spi.ConnectionEventListenerlocalTransactionRolledback in class AbstractConnectionListenerpublic void tidyup()
throws javax.resource.ResourceException
Invoked just before returning the connection to the pool when the connection is not being destroyed.
tidyup in class AbstractConnectionListenerjavax.resource.ResourceException - for any errorpublic boolean isManagedConnectionFree()
isManagedConnectionFree in class AbstractConnectionListenerprotected void toString(java.lang.StringBuffer buffer)
toString in class AbstractConnectionListenerbuffer - buffer instanceCopyright © 2014 IronJacamar (http://www.ironjacamar.org)