Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Need help with setting http proxy with tsetproxy component

Hi, 

I am using trestclient component to call webservices out side of my organization and need to route the calls to these webservices through a proxy server.

I am using tsetproxy component to route my calls through the proxy server. While tsetproxy is routing my https calls through the proxy server, i have noticed this component is setting proxy server at the JVM level of my server. As a result of this, all my https calls are getting routed through the proxy server even the ones which i should not be routing through the proxy.

Please help if there is a parameter i can set in the karaf config files so that jobs use proxy only where tsetproxy is specified and not use proxy set at the JVM 

 

Thanks

Santosh

Labels (3)
3 Replies
manodwhb
Champion II
Champion II

@uganesh ,please check the below link may helpful to you.

 

https://help.talend.com/reader/d6AAFhM7pd~PlpA~VTNtUA/VdjsrbQj6q4jQJ0oLAnHbA

Anonymous
Not applicable
Author

Hi @uganesh ,

 

Instead of using tsetproxy component which sets the proxy at job level , you can configure only trestclient component to use the proxy.

 

In trestclient component go to Advanced Settings and check the Checkbox "use HTTP proxy" and fill in the proxy details.

 

Regards,

Pratheek

Anonymous
Not applicable
Author

@groupproductmanagement 

 

Thanks for the reply, i did try to use the proxy settings in trestclient, it did not work for me. I found the issue to be not with tsetproxy component. I have a requirement to do SFTP via proxy server. SFTP component has only provision to provide SOCKS proxy server. Our proxy server is not SOCKS proxy, so i wrote custom java code to SFTP via proxy using tjava component. 

 

try{
JSch jsch = new JSch();
session = jsch.getSession(SFTPUSER,SFTPHOST,SFTPPORT);
session.setPassword(SFTPPASS);
ProxyHTTP httpProxy= new ProxyHTTP(PROXY,PROXYPORT);
session.setProxy(httpProxy);

 

This is updating proxy settings in system.properties and causing all my https calls to be routed through proxy server.  Any help is appreciated on how i can set proxy through java code and keep these settings at the job level and not affect the syatem.properties