Patches item #685326, was opened at 2003-02-12 09:16 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376687&aid=685326&group_id=22866
Category: JBossCX Group: v3.2 Status: Open Resolution: None Priority: 5 Submitted By: Jeff Gettle (jgettle) Assigned to: Nobody/Anonymous (nobody) Summary: close XAManagedConnection when the connection is destroyed Initial Comment: There is a bug in the XAManagedConnection. When the pooled connection is destroyed, close is never called on the XAConnection. We use oracle and I noticed it by running a transaction and then waiting until the connection pool tried to removed the connection. The connection was no longer use by jboss because I executed another transaction and a new connection was created... however the original connection was never closed. Below is the patch to correct the problem. RCS file: /cvsroot/jboss/jbosscx/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnection.java,v retrieving revision 1.3.2.1 diff -u -r1.3.2.1 XAManagedConnection.java --- XAManagedConnection.java 7 Nov 2002 21:04:19 -0000 1.3.2.1 +++ XAManagedConnection.java 12 Feb 2003 13:51:37 -0000 @@ -218,5 +218,22 @@ } + /** + * + * @exception javax.resource.ResourceException <description> + */ + public void destroy() throws ResourceException + { + super.destroy(); + try + { + xaConnection.close(); + } + catch (SQLException e) + { + checkException(e); + } // end of try-catch + } + }// XAManagedConnection ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=376687&aid=685326&group_id=22866 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development