Skip to Content
0
Former Member
May 23, 2005 at 12:20 PM

Proxy-Configuration for Java applications

296 Views

Hi guys

I'm connecting to an url through a proxy within a servlet. For this purpose I entered the following coding

System.setProperty("http.proxyHost", "proxyserver.com");

System.setPropery("http.proxyPort", "8080");

This works fine so far. However I would like to specify these settings on a administrative level. Thus I entered the following configuration parameters in the configtool->instance->server:

-Dhttp.setProxy=true

-Dhttp.proxyHost=proxyserver.com

-Dhttp.proxyPort=8080

-Dhttp.nonProxyHosts="localhost|*.company.com"

However they don't work .. allthough they're properly written into the instance.properties file after restart.

The test System.getProperties("http.proxyHost") just returns null.

Do you have an idea why this doesn't work?

Cheers

Stephan