com.ibm.websphere.j2c
Interface ConnectionEventListener
- All Superinterfaces:
- javax.resource.spi.ConnectionEventListener, java.util.EventListener
- public interface ConnectionEventListener
- extends javax.resource.spi.ConnectionEventListener
ConnectionEventListner extends the JCA ConnectionEventListener to add support for deferred enlistment. Deferred enlistment is enabled by adding a new event to the ConnectionEventListener (interactionPending) which is used to indicate that a connection should be enlisted in a transaction.
- See Also:
Field Summary static int INTERACTION_PENDING
Identifier for the interactionPending event.
Method Summary void interactionPending(javax.resource.spi.ConnectionEvent connectionevent)
InteracdtionPending is used to signal that a ManagedConnection needs to be enlisted in a transaction - this should happen just prior to when work is done on the back end.
Methods inherited from interface javax.resource.spi.ConnectionEventListener connectionClosed, connectionErrorOccurred, localTransactionCommitted, localTransactionRolledback, localTransactionStarted
Field Detail INTERACTION_PENDING
public static final int INTERACTION_PENDING
- Identifier for the interactionPending event.
- See Also:
- Constant Field Values
Method Detail interactionPending
public void interactionPending(javax.resource.spi.ConnectionEvent connectionevent) throws javax.resource.ResourceException
- InteracdtionPending is used to signal that a ManagedConnection needs to be enlisted in a transaction - this should happen just prior to when work is done on the back end.
- Parameters:
- connectionevent - This should be a interactionPending event with the identifier defined in this class. The ManagedConnection to be enlisted should be inlcuded in the event.
- Throws:
- javax.resource.ResourceException - if an error occurs when enlisting the ManagedConnection.
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.