Sun GlassFish Mobility Platform 1.1 Installation Guide

Chapter 4 Configuring HTTP and HTTPS Proxies

The Sun GlassFish Mobility Platform software can be used across corporate networks where, it is highly likely that, an HTTP proxy would be required to tunnel beyond the firewall protecting the gateway. This chapter explains how to configure the Sun GlassFish Mobility Platform gateway to use HTTP and HTTPS proxies to communicate with corporate enterprise components outside the firewall.

Configuring HTTP and HTTPS Proxies with the Sun GlassFish Enterprise Server Admin Console

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:

To set these JVM options:

  1. Start the Sun GlassFish Enterprise Server Admin Console.

  2. In tree component, expand the Configurations node and then the server-config node.

  3. Select JVM Settings.

  4. Click the JVM Options tab.

  5. Add the options:

    1. Click Add JVM Option.

    2. In the blank row that appears, type the information for the -Djava.http.proxyHost option in the Value field.

    3. Repeat steps a and b for the -Djava.http.proxyPort, -Djava.https.proxyHost, and -Djava.https.proxyPortoptions.

  6. Click Save.

  7. Restart the server.