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
@santosh_kumar ,please check the below link may helpful to you.
Hi @santosh_kumar ,
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.
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.
JSch jsch = new JSch();
session = jsch.getSession(SFTPUSER,SFTPHOST,SFTPPORT);
ProxyHTTP httpProxy= new ProxyHTTP(PROXY,PROXYPORT);
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
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema
Pick up some tips and tricks with Context Variables