Interface ConnectionListener


public interface ConnectionListener
Define the SPI contract for a connection listener plugin for the JDBC resource adapter. The implementing class must have a default constructor. The implementing class must be thread safe. Java bean properties can be set, using the supported types by the Java EE Connector Architecture specification.
Author:
Jesper Pedersen
  • Method Details

    • initialize

      void initialize(ClassLoader cl) throws SQLException
      Initialize
      Parameters:
      cl - The class loader which can be used for initialization
      Throws:
      SQLException - Thrown in case of an error
    • activated

      void activated(Connection c) throws SQLException
      Connection activated
      Parameters:
      c - The connection
      Throws:
      SQLException - Thrown in case of an error
    • passivated

      void passivated(Connection c) throws SQLException
      Connection passivated
      Parameters:
      c - The connection
      Throws:
      SQLException - Thrown in case of an error