Hi,

i'm sure this has been asked a hundred times, but i can't find the answer on 
google.  I'm trying to make my servlet connect to an external webservice, but 
we have an http proxy at work.  

I was initially trying to put this code in my servlet method:

        System.setProperty("http.proxyHost", "proxy.myHost.com");
        System.setProperty("http.proxyPort", "80");

Which works fine when run as a normal Java application, but does not work when 
run inside tomcat servlet.  I have to manually add 

http.proxyPort=80
http.proxyHost= proxy.myHost.com

To my catalina.properties file for it to work.  why does it work from 
catalina.properties but not from System.setProperty??

Thanks,

-J
                                          
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/

Reply via email to