Nothing to fancy so far, we had to modify the JVM settings and add the following parameter:
Dhttp.proxySet=true
Dhttp.proxyHost = proxy_server
Dhttp.proxyPort = listen_port
Dhttp.nonproxyHost = *localhost|*domain.com
in our case this was:
Dhttp.proxySet=true
Dhttp.proxyHost = www-proxy.outsourcing.com
Dhttp.proxyPort = 80
Dhttp.nonproxyHost = *outsourcing.com
Do not forget to add your localhost as non proxy.
The JVM settings can be accessed through the OC4 console or by editing the file
ORACLE_HOME
/opmn/conf/opmn.xml
Dhttps.proxySet=true
Dhttps.proxyHost = www-proxy.outsourcing.com
Dhttps.proxyPort = 80
Dhttps.nonproxyHost = *outsourcing.com
The case has to be exactly that and only a restart of the OC4J instance is not enough- You have to restart the JVM.
Also note that this cannot be changed without a restart.
hi great post! :-) Im also using OWSM behind the proxy;
ReplyDeletebut i am getting http 407, i have added the below lines on the OPMN.xml file; but i still get a 407. any Idea on how to send the credentials to the proxy???
-Dhttp.proxyUser=username -Dhttp.proxyPassword=password;
howdy, your websites are really good. I appreciate your work. 1337x
ReplyDelete