commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17015] New: - GenericObjectPool.invalidateObject() doesn't work with AbandonedObjectPool
Date Wed, 12 Feb 2003 18:10:54 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17015>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17015

GenericObjectPool.invalidateObject() doesn't work with AbandonedObjectPool 

           Summary: GenericObjectPool.invalidateObject() doesn't work with
                    AbandonedObjectPool
           Product: Commons
           Version: Nightly Builds
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Dbcp
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: mic@schlund.de


AbandonedObjectPool inherits invalidateObject() from GenericObjectPool, but this
method doesn't update the list of connections in use. Yuck!

AbandonedObjectPool should overwrite the method - possibly like this:


    public synchronized void invalidateObject(Object obj) throws Exception {
        if (config != null && config.getRemoveAbandoned()) {
            trace.remove(obj);
        }
	super.invalidateObject(obj);        
    }

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message