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

Ortwin Gl�ck wrote:
Michael Becke wrote:

I think the only real way to do it is with an adapter class. It would be a subclass of HttpConnection that takes a connection in the constructor. It would just pass all method calls along to the real connection, until the connection is released.


And add a finalize() that returns it to the pool?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to