Issuing Requests by Using a Proxy Server
For you to make a portal issue requests by using a proxy server, the proxy server settings are controlled by these Java system properties:
-
http.proxyHost
-
http.proxyPort
-
https.proxyHost
-
https.proxyPort
To use a proxy server for the HTTP protocol, set these properties:
http.proxyHost=http_proxy_server_host_name
http.proxyPort=http_proxy_server_portTo use a proxy server for the HTTPS protocol, set these properties:
https.proxyHost=https_proxy_server_host_name
https.proxyPort=https_proxy_server_portThe properties must be passed to the Java interpreter as command-line directives.
Alter the setEnv.cmd or setEnv.sh file located in WebLogic domain’s bin folder. Define the properties on the command line that starts the Java Virtual Machine like this:
set PROXY=-Dhttp.proxyHost=proxyhostname -Dhttp.proxyPort=proxy_port⇒
-Dhttps.proxyHost=proxyhostname -Dhttps.proxyPort=proxy_portLater add the preceding property in startPIA.cmd or startPIA.sh in the Java command line that starts the WebLogic server domain.
%JAVA_HOME%\bin\java -ms64m -mx64m
-classpath %JAVA_CLASSPATH% %PROXY%
-Dweblogic.class.path=%WEBLOGIC_CLASSPATH%
-Dweblogic.home=. -Djava.security.manager⇒
-Djava.security.policy==.\weblogic.policy weblogic.Server
goto finish