You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/12/07 21:26:28 UTC
DO NOT REPLY [Bug 31569] -
[dbcp] Dbcp doesn't meet JDBC specification
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31569>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31569
yoavs@computer.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |enhancement
Priority|P3 |P5
Version|2.1 Final |1.2 Final
------- Additional Comments From yoavs@computer.org 2004-12-07 21:26 -------
The JDBC Spec says indeed that those resources will be automatically closed
when garbag collected. It doesn't say when they can be garbage collected, nor
does it place restrictions on implementations to garbage collect after
executing SQL. So DBCP is not in violation of the Spec by a long shot.
Accordingly, I'm changing this into an enhancement request. If you want to
increase the probability of it being done any time soon, submit a patch.
Two other notes: First, AbandonedTrace is deprecated and has been for a while.
It will likely be removed in the next major DBCP released, at which point this
item will become moot. Second, the best practice for JDBC resource handling is
to explicitly close what you don't need. People who write code as you
illustrate above are not following that practice and don't deserve much
sympathy.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org