|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jca.core.connectionmanager.listener.AbstractConnectionListener
org.jboss.jca.core.connectionmanager.listener.TxConnectionListener
public class TxConnectionListener

Tx connection listener.
| Nested Class Summary | |
|---|---|
class |
TxConnectionListener.TransactionSynchronization
Transaction sync. |
| Field Summary |
|---|
| Fields inherited from class org.jboss.jca.core.connectionmanager.listener.AbstractConnectionListener |
|---|
trace |
| Constructor Summary | |
|---|---|
TxConnectionListener(ConnectionManager cm,
javax.resource.spi.ManagedConnection mc,
Pool pool,
Object context,
org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy,
XAResource xaResource,
int xaResourceTimeout)
Creates a new tx listener. |
|
| Method Summary | |
|---|---|
void |
connectionClosed(javax.resource.spi.ConnectionEvent ce)
|
void |
connectionErrorOccurred(javax.resource.spi.ConnectionEvent ce)
|
void |
delist()
Delist the managed connection |
void |
enlist()
Enlist the managed connection |
protected CoreLogger |
getLogger()
Get the logger |
protected 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 |
protected void |
toString(StringBuffer buffer)
Add specific properties. |
void |
used()
Mark the connection as used |
| Methods inherited from class org.jboss.jca.core.connectionmanager.listener.AbstractConnectionListener |
|---|
compareTo, getCachedConnectionManager, getConnectionManager, getContext, getLastValidatedTime, getManagedConnection, getPool, getState, handleClosed, handleCreated, isTimedOut, isTrackByTx, registerConnection, setLastValidatedTime, setState, setTrackByTx, toString, unregisterConnection, unregisterConnections |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TxConnectionListener(ConnectionManager cm,
javax.resource.spi.ManagedConnection mc,
Pool pool,
Object context,
org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy,
XAResource xaResource,
int xaResourceTimeout)
throws javax.resource.ResourceException
cm - connection managermc - managed connectionpool - poolcontext - contextflushStrategy - flushStrategyxaResource - xaresource instancexaResourceTimeout - timeout for the XAResource
javax.resource.ResourceException - if aexception while creating| Method Detail |
|---|
protected CoreLogger getLogger()
getLogger in class AbstractConnectionListenerpublic void used()
used in class AbstractConnectionListener
public void enlist()
throws SystemException
enlist in class AbstractConnectionListenerSystemException - for errors
public void delist()
throws javax.resource.ResourceException
delist in class AbstractConnectionListenerjavax.resource.ResourceException - if exception occursprotected 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 AbstractConnectionListener
public 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 void connectionErrorOccurred(javax.resource.spi.ConnectionEvent ce)
connectionErrorOccurred in interface javax.resource.spi.ConnectionEventListenerconnectionErrorOccurred in class AbstractConnectionListenerpublic boolean isManagedConnectionFree()
isManagedConnectionFree in class AbstractConnectionListenerprotected void toString(StringBuffer buffer)
toString in class AbstractConnectionListenerbuffer - buffer instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||