Saturday, April 5, 2008

Use tomcat through a proxy

During last days I had the necessity to access from my development tomcat the external world (e.g. access remote web services). The problem is that, inside my network, access to the external world is achieved through a proxy with autentication. The solution is to add the following line to your catalina.properties (..\apache-tomcat-5.5.26\conf\catalina.properties):

http.proxyHost=my.proxy.com
http.proxyPort=8080
http.proxyUser=user
http.proxyPassword=password

VoilĂ !

No comments: