Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
@uganesh ,please check the below link may helpful to you.
https://help.talend.com/reader/d6AAFhM7pd~PlpA~VTNtUA/VdjsrbQj6q4jQJ0oLAnHbA
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
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