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.

Reply via email to