directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Lefler" <>
Subject A question regarding "" class
Date Wed, 10 Mar 2010 15:03:16 GMT

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,


View raw message