geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <...@geronimo.apache.org>
Subject [jira] Created: (GERONIMO-561) Connection obtained in Synchronization.afterCompletion gets associated w/tx context
Date Tue, 01 Feb 2005 00:21:19 GMT
Connection obtained in Synchronization.afterCompletion gets associated w/tx context
-----------------------------------------------------------------------------------

         Key: GERONIMO-561
         URL: http://issues.apache.org/jira/browse/GERONIMO-561
     Project: Apache Geronimo
        Type: Bug
  Components: connector  
    Versions: 1.0-M3    
    Reporter: David Jencks
 Assigned to: David Jencks 


If you have code like this in a Synchronization.afterCompletion:

Connection c = ds.getConnection();
//do something
c.close();

it gets added to the connection tracking of the transaction context that just ended.  c.close()
returns it to the pool, properly, but the end-of-tx cleanup returns it to the pool a second
time.  

The connection should not be tracked by the transaction  context, the transaction is over.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message