directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Lefler" <mic...@traffixsystems.com>
Subject A question regarding "org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper" class
Date Wed, 10 Mar 2010 15:03:16 GMT
Hi.

I was using JNDI, and I noticed that if I use JNDI connection pooling,
"ctx.close()" does not release the context back to the pool unless I
execute "System.gc()" explicitly.

I looked at your " JNDIConnectionWrapper" class as a reference, and I
saw that your "disconnect" method also executes "System.gc()".

Why did you add this call? 

Did you ran into the same problem? 

Isn't there a better solution? (it is pretty ugly...)

 

Thanks in advance,

Michal.


Mime
View raw message