Skip Headers
Oracle® Enterprise Data Quality for Product Data Java API Interface Guide
Release 11g R1 (11.1.1.6)

Part Number E29133-03
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
PDF · Mobi · ePub

A Working Through a Proxy Server

Sometimes a Java program needs to call the Oracle DataLens Java API to an Oracle DataLens Server outside of your firewall. Normally this is not a problem, but sometimes there is a proxy server that must be negotiated to get to the outside world.

There are two solutions to this problem.

Run-Time Java Proxy Parameters

Three parameters are used with the java command to set the proxy information:

These parameters are illustrated in the following example java call to a program called WfgProgram:

java -cp "./opdq-api1.jar;./jdom-1.0.jar;." -DproxySet=true  -DproxyHost=10.1.60.116 -DproxyPort=8080 WfgProgram

RtClient Java Proxy Parameters

There are four additional parameters to the RtClient overloaded constructor for with through a proxy. For additional information, see the JavaDoc documentation as described in "Related Documents".

  • @param proxyHost - the name of the proxy server

  • @param proxyPort - the port of the proxy server

  • @param proxyUser - the user name to login to the proxy server

  • @param proxyPassword - the password to login to the proxy server

These are shown in the following between the ServerPort and the ENCRYPTION parameters:

m_wfgClient = new WfgClient(serverName, serverPort,
              "10.1.60.106",2229, "user123", "secret1",
                          ENCRYPTION, clientCode, APPLICATION);