I know what is Object Pooling in Java
I was keen to know if there are any better alternatives which can be used in an distributed environment, or specifically with server sockets and database connection sockets.
Any information or leads would be helpful.
Thanks,
Ivard
Object pooling in general is not a good idea in Java anymore, as in recent JVM versions object creation (and GC) is extremely cheap and safe (much safer than trying to make an object pool threadsafe in a concurrent environment...).
It is only reasonable in case the specific objects are very costly to create and/or consume lots of resources, such as connection pooling. The thread you linked contains some useful looking suggestions for solutions (however, lacking personal experience, I can't recommend any of these).