I've created Bug 56310 for this issue. Jonathan
-----Original Message----- From: Pierce, Jonathan D Sent: Tuesday, March 25, 2014 10:54 AM To: Tomcat Users List Subject: RE: PooledConnection.getConnection - Tomcat JDBC Pool In the Aries class, the expectation is that XAConnection.getConnection().close() will return the connection to the pool, and that XAConnection.close() would close the physical connection. This seems to jive with the documentation on PooledConnection.close (http://docs.oracle.com/javase/6/docs/api/javax/sql/PooledConnection.html): "Closes the physical connection that this PooledConnection object represents. An application never calls this method directly; it is called by the connection pool module, or manager. See the interface description for more information." The reason I'm using the library outside of Tomcat is because I need a connection pooling library, and I'm running in an OSGi environment (not a Java Servlet Container). I came across tomcat-jdbc and after reading the documentation and doing some research it seemed like an improved drop in replacement for Apache Commons DBCP. We have been using it for over a year without problem. Only recently when we tried to implement distributed transactions have we run into any issues. I will create a bug in the bug tracker. Jonathan -----Original Message----- From: John Smith [mailto:tomcat.ran...@gmail.com] Sent: Tuesday, March 25, 2014 10:42 AM To: Tomcat Users List Subject: Re: PooledConnection.getConnection - Tomcat JDBC Pool On Tue, Mar 25, 2014 at 9:54 AM, Filip Hanik <fi...@hanik.com> wrote: > Please open a bug, and we will get this taken care of. I do have one > question,Aries library, on which call does it expect to return the > connection to the pool? XAConnection.close() or > XAConnection.getConnection().close(); ? > > Jonathan, Filip, If it is a bug then my answer is way off the mark. I'm sorry. If it's not a problem, could you explain, in this case, what acts as the connection pool manager when the Tomcat jdbc pool library is used outside of Tomcat? Best, John This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org