[ 
https://issues.apache.org/jira/browse/OPENEJB-4?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13191030#comment-13191030
 ] 

David Blevins commented on OPENEJB-4:
-------------------------------------

2012-01-05 - http://svn.apache.org/viewvc?view=revision&revision=1228002 - 
dblevins
2012-01-15 - http://svn.apache.org/viewvc?view=revision&revision=1231833 - 
dblevins

                
> Patch: JdbcManagedConnection.connectionClose
> --------------------------------------------
>
>                 Key: OPENEJB-4
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-4
>             Project: OpenEJB
>          Issue Type: Bug
>            Reporter: hamilton verissimo
>            Assignee: David Jencks
>             Fix For: 2.0
>
>
> 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){
>         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);
>         }
>     }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to