Need help with setting http proxy with tsetproxy component

Four Stars

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

Forteen Stars

Re: Need help with setting http proxy with tsetproxy component

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

 

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

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Employee

Re: Need help with setting http proxy with tsetproxy component

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.

 

Regards,

Pratheek

Four Stars

Re: Need help with setting http proxy with tsetproxy component

@pmanjunath 

 

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 

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog