The connector architecture provides an event callback mechanism that enables an application server to receive notifications from a ManagedConnection instance. The App server implements this class in order to listen to event notifications from ManagedConnection instance.
Class Specifications
public class MFECIConnectionEventListener
extends
Object
implements javax.resource.spi.ConnectionEventListener,
Serializable
See Also:
Serialized Form
Methods
Method Summary
|
void
|
connectionClosed (javax.resource.spi.ConnectionEvent event)
Send a connection closed event.
|
void
|
connectionErrorOccurred((javax.resource.spi.ConnectionEvent event) event)
Send a connection error occurred event.
|
void
|
localTransactionCommitted((javax.resource.spi.ConnectionEvent event) event)
Send a local transaction committed event.
|
void
|
localTransactionRolledBack((javax.resource.spi.ConnectionEvent event) event)
Send a local transaction rolled back event.
|
void
|
localTransactionStarted((javax.resource.spi.ConnectionEvent event) event)
Send a local transaction started event.
|
Constructor Detail
- MFECIConnectionEventListener
-
public MFECIConnectionEventListener(javax.resource.spi.ManagedConnection mcon)
Create a connection event listener.
- Parameters:
-
mcon
|
MFECIManagedConnection instance
|
Method Detail
- connectionClosed
-
void connectionClosed(javax.resource.spi.ConnectionEvent event)
Send a connection closed event.
- Specified by:
- connectionClosed in interface javax.resource.spi.ConnectionEventListener
- Parameters:
-
event
|
The connection event.
|
- connectionErrorOccurred
-
void connectionErrorOccurred(javax.resource.spi.ConnectionEvent event)
Send a connection error occurred event.
- Specified by:
- connectionErrorOccurred in interface javax.resource.spi.ConnectionEventListener
- Parameters:
-
event
|
The connection event.
|
- localTransactionCommitted
-
void localTransactionCommitted(javax.resource.spi.ConnectionEvent event)
Send a local transaction committed event.
- Specified by:
- localTransactionCommitted in interface javax.resource.spi.ConnectionEventListener
- Parameters:
-
event
|
The connection event.
|
- localTransactionRolledBack
-
void localTransactionRolledBack(javax.resource.spi.ConnectionEvent event)
Send a local transaction rolled back event.
- Specified by:
- localTransactionRolledBack in interface javax.resource.spi.ConnectionEventListener
- Parameters:
-
event
|
The connection event.
|
- localTransactionStarted
-
void localTransactionStarted(javax.resource.spi.ConnectionEvent event)
Send a local transaction started event.
- Specified by:
- localTransactionStarted in interface javax.resource.spi.ConnectionEventListener
- Parameters:
-
event
|
The connection event.
|