Proxy server support
- Last Updated: April 2, 2024
- 1 minute read
- DataDirect Connectors
- JDBC
- Oracle Database 6.0
- Documentation
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:
- Server name or IP address of the proxy server
- Port number on which the proxy server is listening for HTTP/HTTPS requests
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 8888, and provides a user ID and password for authentication:
java -Dhttp.proxyHost=pserver -Dhttp.proxyPort=8888 -Dhttp.proxyUser=smith -Dhttp.proxyPassword=secret -cp oracle.jar com.acme.myapp.Main
Alternatively, you can use the ProxyHost, ProxyPort, ProxyUser, and ProxyPassword connection properties. See Connection property descriptions and Proxy Server Properties for details about these properties.