Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-4

Patch: JdbcManagedConnection.connectionClose

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • None
    • None

    Description

      Necessary to pass on the connection. Geronimo codes needs to remove it from GeronimoConnectionEventListener.connectionInfos

      Adds the following line:

      event.setConnectionHandle(jdbcConn);

      as above:

      /**

      • Invoked by the JdbcConneciton when its close() method is called.
      • This method invalidates the JdbcConnection handle, removes it from
      • the list of active handles and notifies all the ConnectionEventListeners.
        */
        protected void connectionClose(JdbcConnection jdbcConn)
        Unknown macro: { jdbcConn.invalidate(); jdbcConnections.remove(jdbcConn); ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(jdbcConn); Object [] elements = listeners.toArray(); for(int i = 0; i < elements.length; i++){ ConnectionEventListener eventListener = (ConnectionEventListener)elements[i]; eventListener.connectionClosed(event); } }

      Attachments

        Activity

          People

            djencks David Jencks
            hammett Hamilton Verissimo DeOliveira
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: