My apologies. There had been a discussion about the ability to force
close a connection as a method on the Connection class, but it appears
to have been removed. I don't know if the semantics intended to ensure
this happened even if the Connection was a brokered/proxied connection.
But it's moot, it looks like it didn't make the final cut.
I'm sure Lance will have more to say on this :)
David
Rick Hillegas wrote:
I agree with Dan.
PooledConnection exposes a getConnection() method which returns its
wrapped
Connection object. I suspect the intention is that that Connection is
itself a wrapper whose close()
method deliberately does not close the underlying physical Connection.
Being able to
close the underlying Connection would work at cross-purposes to the
whole idea
of Connection pooling.
It would be interesting to understand the problem that this
enhancement is wrestling with.
Nakayama-san, can you shed some more light on your reasons for logging
this bug?
Thanks,
-Rick
Daniel John Debrunner wrote:
Rick Hillegas wrote:
Hi David,
Where in the JDBC 4 spec would this be? I seem to have missed it.
There's a fairly long section on Connection Pooling, but I didn't see
this issue addressed.
I'm not sure it should be. Applications should not have the ability to
close the underlying physical connection from their logical connection
object. An api exists to close the physical connection, the close method
on PooledConnection. But applications do not (and should not) have
access to PooledConnection.
Dan.
Thanks,
-Rick
David Van Couvering wrote:
Isn't this part of the proposed interfaces for the JDBC 4 spec?
Tomohito Nakayama (JIRA) wrote:
[ http://issues.apache.org/jira/browse/DERBY-478?page=all ]
Tomohito Nakayama updated DERBY-478:
------------------------------------
Summary: Function to force closing connection (and session)
(was: Force to close connection and session)
Description: When connection exists in ConnectionPool , there are
no way to ensure closing connection inside the ConnectionPool from
application program just using jdbc interface.
I think there exists needs to force closing connection when it is
needed to ensure closing of connection. was:When connection exists
in ConnectionPool , there are no way to ensure
Function to force closing connection (and session)
--------------------------------------------------
Key: DERBY-478
URL: http://issues.apache.org/jira/browse/DERBY-478
Project: Derby
Type: Improvement
Components: Network Server
Reporter: Tomohito Nakayama
When connection exists in ConnectionPool , there are no way to
ensure closing connection inside the ConnectionPool from application
program just using jdbc interface.
I think there exists needs to force closing connection when it is
needed to ensure closing of connection.
begin:vcard
fn:David Van Couvering
n:Van Couvering;David
org:Sun Microsystems, Inc.;Database Technology Group
email;internet:[EMAIL PROTECTED]
title:Senior Staff Software Engineer
tel;work:510-550-6819
tel;cell:510-684-7281
x-mozilla-html:TRUE
version:2.1
end:vcard