-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Rainer,
On 11/21/13, 2:18 AM, Rainer Frey (Inxmail GmbH) wrote: > > On 20.11.2013, at 14:21, Christopher Schultz > <ch...@christopherschultz.net> wrote: > >> Rainer, FWIW, Connection.close also states this: >> >> " Releases this Connection object's database and JDBC resources >> immediately instead of waiting for them to be automatically >> released. " >> >> Does that mean that all connection pools by design are in direct >> violation of the JDBC spec? > > I assume you’re referring to the "Releases this Connection object's > database resources” part, then yes, they’re in violation of the > letter of the API spec. I’m not sure whether the Javadoc is > regarded as binding as the spec document though. And following the > letter would indeed defy the very purpose of the pool. > > The other pools that I know do free the JDBC resources though. And > that’s the part of the behavior that is really visible to the > application. (And yes, Javadoc says it is best practice to > explicitly close the JDBC resources as early as possible, but it > also states that one can get away with not doing so). > > I also think that this is a justifiable spec violation, and all I’m > asking is that this fact is shown more prominently, esp. as JDBC > pool is advertised as a drop-in replacement for DBCP. Fair enough. Care you file a documentation bug and possibly provide a patch? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSjrFXAAoJEBzwKT+lPKRYTPMQAI/9LkWMM9h/VdmQdqIRiWpo DUZJhzTDs+BqVo5pjaomEpjIcUsjckyqOuvdJ2Fp1b2maUAFJd8E3DiqEQpYw4Kq 5lyPhk3MxWLmrjg5yqdnQzUb7Ay0RFQcjlKzwJ1xVGaaBam0erwpUuwKCxuf/xZk Svo2/Q+HxDPZeJfRetzGaBVfSCNW8eWKNQS0i0iJuFgLpvciesHb3YgTQC39ma/7 0JSOuwPvNX0+ulRVCYnXLUThhclO4mmWmnuo7RamAfx7hv+fKaKaZu1aI9eSrskn kMtsly8vbc9W1WL38pO7EiDmufVEBdlE2Qhmb88kJnzCEsp9wNxK2qGTRFj6CNmA KkGXXVag4B2z2ycHNmuxj4VS0y6RSxvhLsHAbiYaeitT8tpWkyxO0P+FOX4+Od86 cTR/iGyUQjUuVQ1wLMqsAlMNM0e28i9OkKmrOzNOjLnhre4RXH9Wd3f1tfwH5TBC m3Ll9SFgmWPHQzLxpinp5XqmyJVl9KlMbaW8rB/6ribhPPXoULUQnIVdPFhm7r2n zZ7QSYcBuW6fcqpM583VQJDmL/1dOaTcspRSWoBiRFVPq6SuIilaXjeIqNTf+SxQ BKgRPAs+hZ5B9jS2v5rBfvLoUfBf1I8YmohGd4xG8ifbLhzZXHirakMJhiW045fW ZYB3DK0svtw7+FkUKOId =sux5 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org