Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-941

Add JDBC4 support for Statement Events

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.2.0
    • Fix Version/s: 10.2.1.6
    • Component/s: JDBC
    • Labels:
      None

      Description

      As described in the JDBC 4 spec, sections 11.2, 11.7, and 3.1.

      These are the methods which let app servers listen for connection and statement closure and invalidation events.

      Section 11.2 of the JDBC 4 spec explains connection events: Connection pool managers which implement the ConnectionEventListener interface can register themselves to listen for "connectionClosed" and fatal "connectionErrorOccurred" events. App servers can use these events to help them manage the recycling of connections back to the connection pool.

      Section 11.7 of the JDBC 4 spec explains statement events: Statement pools which implement StatementEventListener can register themselves to listen for "statementClosed" and "statementErrorOccurred" events. Again, this helps statement pools manage the recycling of statements back to the pool.

        Attachments

        1. statementeventlisteners_embedded.stat
          0.9 kB
          V.Narayanan
        2. statementeventlisteners_embedded.diff
          26 kB
          V.Narayanan
        3. statementeventlisteners_embedded_ver1.html
          11 kB
          V.Narayanan
        4. statementeventlisteners_embedded_v3.stat
          0.5 kB
          V.Narayanan
        5. statementeventlisteners_embedded_v3.diff
          15 kB
          V.Narayanan
        6. statementeventlisteners_embedded_v2.stat
          0.9 kB
          V.Narayanan
        7. statementeventlisteners_embedded_v2.diff
          25 kB
          V.Narayanan
        8. statementeventlisteners_client.stat
          1 kB
          V.Narayanan
        9. statementeventlisteners_client.html
          7 kB
          V.Narayanan
        10. statementeventlisteners_client.diff
          62 kB
          V.Narayanan
        11. statementeventlisteners_client_v4.stat
          1 kB
          V.Narayanan
        12. statementeventlisteners_client_v4.diff
          73 kB
          V.Narayanan
        13. statementeventlisteners_client_v3.stat
          1 kB
          V.Narayanan
        14. statementeventlisteners_client_v3.diff
          72 kB
          V.Narayanan
        15. statementeventlisteners_client_v2.stat
          1 kB
          V.Narayanan
        16. statementeventlisteners_client_v2.diff
          72 kB
          V.Narayanan
        17. statementeventlisteners_client_v1.stat
          1 kB
          V.Narayanan
        18. statementeventlisteners_client_v1.diff
          74 kB
          V.Narayanan
        19. ListenerTest.java
          3 kB
          Knut Anders Hatlen
        20. diff_between_ver2_ver3.txt
          0.3 kB
          V.Narayanan

          Activity

            People

            • Assignee:
              narayanan V.Narayanan
              Reporter:
              rhillegas Rick Hillegas
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: