hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Gl├╝ck <ortwin.glu...@nose.ch>
Subject Re: DO NOT REPLY [Bug 13463] - Request/Response race condition when doing multiple requests on the same connection.
Date Fri, 14 Feb 2003 16:22:52 GMT
Michael Becke wrote:
> I was thinking that releaseConnection() on the adapter would remove the 
> internal reference to the actual connection.  After that the wrapper 
> would not be usable.  It could either throw exceptions or just return 
> empty data.
> 
> Mike


All right. Actually the close() method could be used for this. We do not 
need the extra releaseConnection() method.

Let's simply make it like an ordinary pooled database Connection object:
- call pool.getConnection(...)
- call connection.close() when finished to return it to the pool


Mime
View raw message