I need to manage long running TCP socket connections to an external server from my Java application. I'm looking for a good socket pool so I will be able to re-use the sockets. Are there any suggestions?
+2
A:
You could have a look at building a socket pool on top of Commons Pool.
Mark
2009-06-02 10:23:48
Though about it, but I had bad experience with it in the past. Also, its code is was not optimised to Java 5/6 - no Generics, no concurrent collections, etc.
David Rabinowitz
2009-06-02 10:50:58
Good point. I guess that is one of the problems with some of the commons projects - collections being another example.
Mark
2009-06-02 12:33:23
Went for it after all.
David Rabinowitz
2009-06-24 12:41:36
A:
Koders.com has an implementation here. I can't vouch for it's functionality, however, so you should run a few tests on it.
Brian Agnew
2009-06-02 10:46:13
I have. There is a thread pool implementation, which is not helpful very much.
David Rabinowitz
2010-08-04 08:54:58