Are there any real-life examples of using SocketImplFactory? I was hoping to find a way to redirect selected sockets, by IP address, to a different implementation of sockets that could take advantage of a high-speed connection. For this to work, I'd need to be able to delegate all other sockets back to the standard implementation. Unfortunately, it appears that most of the classes I'd need to access are package-private so this approach wouldn't work.
A requirement is that applications would not require any source changes. They would be unmodified and just have things redirect dynamically when they create a Socket or ServerSocket. I was thinking that this feature would be enabled through a class that loads as a service and calls setSocketFactory. Inheriting from Socket or ServerSocket doesn't help since I can't change the applications and I can't make those classes revert to the default implementation when I don't want to use mine. Is there any hope of something like this working? Tom Salter | Software Engineer | Java & Middleware Development Unisys | 2476 Swedesford Road | Malvern, PA 19355 | 610-648-2568 | N385-2568