cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Proxy-Configuration for Java applications

Former Member
0 Likes
1,495

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

View Entire Topic
Former Member
0 Likes

Hi Stephan,

as you are posting your question in an EP forum I guess your servlet is running as an iView. If this is the case you can configure a HTTP-Proxy in the EP. This is pretty well documented under:

http://help.sap.com/saphelp_nw04/helpdata/en/33/8abf9e0ce011d7b84900047582c9f7/content.htm

Best Regards

Mirko