We have a few applications which are running on a web server in a local network. Some of them need to make requests through a proxy, because they have to access to external resources, so we decide to use a custom implementation of ProxySelector.
The problem is that all connections opened by the virtual machine of the web server will ask the ProxySelector. I mean, all applications are going to use our custom proxy selector, not just some of them.
Any idea to use something like Proxy Selector just at application level? Any other idea?
All of this solutions http://docs.oracle.com/javase/1.5.0/docs/guide/net/proxies.html are JVM stuff, no application.