Part 4: The Connect XE Drivers : The Salesforce Driver : Connecting Through a Proxy Server

Connecting Through a Proxy Server
In some environments, your application may need to connect through a proxy server, for example, if your application accesses an external resource such as a Web service. At a minimum, your application needs to provide the following connection information when you invoke the JVM if the application connects through a proxy server:
In addition, if authentication is required, your application may need to provide a valid user ID and password for the proxy server. Consult with your system administrator for the required information.
For example, the following command invokes the JVM while specifying a proxy server named pserver, a port of 808, and provides a user ID and password for authentication:
java -Dhttp.proxyHost=pserver -Dhttp.proxyPort=808 -Dhttp.proxyUser=smith -Dhttp.proxyPassword=secret -cp sforce.jar com.acme.myapp.Main
Alternatively, you can use the Proxy Host, Proxy Port, Proxy User, and Proxy Password connection attributes, but these options are applied only for the first connection. See Connection Option Descriptions for details about these attributes.

© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.