Class UnpooledConnectionEventListener
- java.lang.Object
-
- com.sun.enterprise.resource.listener.ConnectionEventListener
-
- com.sun.enterprise.resource.listener.UnpooledConnectionEventListener
-
- All Implemented Interfaces:
BadConnectionEventListener
,jakarta.resource.spi.ConnectionEventListener
,EventListener
public class UnpooledConnectionEventListener extends ConnectionEventListener
This class is a ConnectionEventListener for handling the "close" of a ManagedConnection that is not acquired through the appserver's pool. The ManagedConnection is simply destroyed after close is called Such an "unpooled" ManagedConnection is obtained for testConnectionPool and the ConnectorRuntime.getConnection() APIs- Since:
- SJSAS 8.1
- Author:
- Aditya Gore
-
-
Field Summary
-
Fields inherited from interface com.sun.appserv.connectors.internal.spi.BadConnectionEventListener
POOL_RECONFIGURED_ERROR_CODE
-
-
Constructor Summary
Constructors Constructor Description UnpooledConnectionEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
Methods inherited from class com.sun.enterprise.resource.listener.ConnectionEventListener
connectionAbortOccurred
-
-
-
-
Method Detail
-
connectionClosed
public void connectionClosed(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
-
connectionErrorOccurred
public void connectionErrorOccurred(jakarta.resource.spi.ConnectionEvent evt)
-
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)
-
-