Class LocalTxConnectionEventListener
- java.lang.Object
-
- com.sun.enterprise.resource.listener.ConnectionEventListener
-
- com.sun.enterprise.resource.listener.LocalTxConnectionEventListener
-
- All Implemented Interfaces:
BadConnectionEventListener
,jakarta.resource.spi.ConnectionEventListener
,EventListener
public class LocalTxConnectionEventListener extends ConnectionEventListener
- Author:
- Binod P.G
-
-
Field Summary
-
Fields inherited from interface com.sun.appserv.connectors.internal.spi.BadConnectionEventListener
POOL_RECONFIGURED_ERROR_CODE
-
-
Constructor Summary
Constructors Constructor Description LocalTxConnectionEventListener(ResourceHandle resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
associateHandle(Object c, ResourceHandle h)
void
badConnectionClosed(jakarta.resource.spi.ConnectionEvent evt)
Resource adapters will signal that the connection being closed is bad.void
connectionClosed(jakarta.resource.spi.ConnectionEvent evt)
void
connectionErrorOccurred(jakarta.resource.spi.ConnectionEvent evt)
void
localTransactionCommitted(jakarta.resource.spi.ConnectionEvent evt)
void
localTransactionRolledback(jakarta.resource.spi.ConnectionEvent evt)
void
localTransactionStarted(jakarta.resource.spi.ConnectionEvent evt)
ResourceHandle
removeAssociation(Object c)
void
resetAssociations()
-
Methods inherited from class com.sun.enterprise.resource.listener.ConnectionEventListener
connectionAbortOccurred
-
-
-
-
Constructor Detail
-
LocalTxConnectionEventListener
public LocalTxConnectionEventListener(ResourceHandle resource)
-
-
Method Detail
-
connectionClosed
public void connectionClosed(jakarta.resource.spi.ConnectionEvent evt)
-
connectionErrorOccurred
public void connectionErrorOccurred(jakarta.resource.spi.ConnectionEvent evt)
-
badConnectionClosed
public void badConnectionClosed(jakarta.resource.spi.ConnectionEvent evt)
Resource adapters will signal that the connection being closed is bad.- Specified by:
badConnectionClosed
in interfaceBadConnectionEventListener
- Overrides:
badConnectionClosed
in classConnectionEventListener
- Parameters:
evt
- ConnectionEvent
-
localTransactionStarted
public void localTransactionStarted(jakarta.resource.spi.ConnectionEvent evt)
-
localTransactionCommitted
public void localTransactionCommitted(jakarta.resource.spi.ConnectionEvent evt)
-
localTransactionRolledback
public void localTransactionRolledback(jakarta.resource.spi.ConnectionEvent evt)
-
associateHandle
public void associateHandle(Object c, ResourceHandle h)
-
removeAssociation
public ResourceHandle removeAssociation(Object c)
-
resetAssociations
public void resetAssociations() throws jakarta.resource.ResourceException
- Throws:
jakarta.resource.ResourceException
-
-