Class ConnectionEvent

java.lang.Object
java.util.EventObject
jakarta.resource.spi.ConnectionEvent
All Implemented Interfaces:
Serializable

public class ConnectionEvent extends EventObject
The ConnectionEvent class provides information about the source of a connection related event.A ConnectionEvent instance contains the following information:
  • Type of the connection event
  • ManagedConnection instance that generated the connection event. A ManagedConnection instance is returned from the method ConnectionEvent.getSource.
  • Connection handle associated with the ManagedConnection instance; required for the CONNECTION_CLOSED event and optional for the other event types.
  • Optionally, an exception indicating the connection related error. Note that exception is used for CONNECTION_ERROR_OCCURRED.

This class defines following types of event notifications:

  • CONNECTION_CLOSED
  • LOCAL_TRANSACTION_STARTED
  • LOCAL_TRANSACTION_COMMITTED
  • LOCAL_TRANSACTION_ROLLEDBACK
  • CONNECTION_ERROR_OCCURRED
Version:
0.5
See Also: