On the JVM Options page in the Sun GlassFish Enterprise Server Admin Console, you can specify these options for the Java application launcher that runs the Enterprise Server. The following -D JVM options designate proxy properties that are specific to this Enterprise Server:
-Djava.http.proxyHost=proxyHostName where proxyHostName is the host name of the proxy server
-Djava.http.proxyPort=proxyPortNumber where proxyPortNumber is the port number of the proxy server
-Djava.https.proxyHost=secureProxyHostName where secureProxyHostName is the host name of the secure proxy server
-Djava.https.proxyPort=secureProxyPortNumber where secureProxyPortNumber is the port number of the secure proxy server
To set these JVM options:
Start the Sun GlassFish Enterprise Server Admin Console.
In tree component, expand the Configurations node and then the server-config node.
Select JVM Settings.
Click the JVM Options tab.
Add the options:
Click Add JVM Option.
In the blank row that appears, type the information for the -Djava.http.proxyHost option in the Value field.
Repeat steps a and b for the -Djava.http.proxyPort, -Djava.https.proxyHost, and -Djava.https.proxyPortoptions.
Click Save.
Restart the server.