geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hamilton Verissimo de Oliveira (Engenharia - SPO)" <hamilton.olive...@agenciaclick.com.br>
Subject MultiPoolConnectionInterceptor.SubjectCRIKey fix
Date Wed, 05 May 2004 21:58:34 GMT

I'm experiencing some memory leaks with Geronimo JCA implementation. While
I'm trying to find out where is the problem I saw another minor problem:

SubjectCRIKey must overrides hashCode. If not the getConnection will always
create new pools:

    public void getConnection(ConnectionInfo connectionInfo) throws
ResourceException {

        <...>

        SinglePoolConnectionInterceptor poolInterceptor = null;
        synchronized (pools) {
            poolInterceptor = (SinglePoolConnectionInterceptor)
pools.get(key);


Maybe that is the reason of the memory leak. Anyway, still digging...


Regards,
hammett

Mime
View raw message