My Java based SOAP Service needs to external connections in the internet but it is behind a proxy server (on an intranet). How do I tunnel through the firewall?
Created Nov 24, 2001
Davanum Srinivas Suppose your proxy server is called "proxy.foo.com" and it is on port 9999.
There are a couple of ways of configuring Apache to use a proxy. One solution is to use the JVM capabilities to deal with proxies:
System.getProperties().put("proxySet","true");
System.getProperties().put("proxyHost","proxy.foo.com");
System.getProperties().put("proxyPort","9999");
For socks based proxy server:
System.getProperties().put("socksProxyHost","socks.foo.com");
System.getProperties().put("socksProxyPort","1080");
Another solution is to tell TOMCAT to
the proxying via the variable TOMCAT_OPTS), for HTTP proxies:
set TOMCAT_OPTS="-DproxyHost=proxy.foo.com -DproxyPort=9999"For socks:
set TOMCAT_OPTS="-DsocksProxyHost=socks.foo.com -DsocksProxyPort=1080"