Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-704

Allow the registration of a listener for Datasource connection events

    XMLWordPrintable

    Details

      Description

      When using Oracle Proxy feature, there are cases where you need to run custom SQL commands before returning the connection to the application and also when returning to the pool. I propose the creation of a ConnectionActivationListener interface (or even split it into two interfaces - ConnectionPassivationListener) where you could find the following methods:

      void connectionActivated(Connection con) throws SQLException; 
      void connectionPassivated(Connection con) throws SQLException;
      

      And then allow adding this class to a datasource configuration.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jesper.pedersen Jesper Pedersen
                Reporter:
                gastaldi George Gastaldi
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: