Oracle® Enterprise Data Quality for Product Data Java API Interface Guide Release 5.6.2 Part Number E23725-02 |
|
|
View PDF |
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.
Use the Oracle DataLens Web Services interface and you your WSDL connection software to negotiate through the proxy server.
Use the Java Proxy arguments to the java
command.
Three parameters are used with the java
command to set the proxy information:
DproxySet=true
DproxyHost=
hostname or IP Address
DproxyPort=8080
These parameters are illustrated in the following example java
call to a program called WfgProgram
:
java -cp "./edqp-api.jar;./edqp-apiimports.jar;." -DproxySet=true -DproxyHost=10.1.60.116 -DproxyPort=8080 WfgProgram
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);