Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

[resolved] How to make Rest Endpoint configurable in Talend Runtime

Highlighted
One Star

[resolved] How to make Rest Endpoint configurable in Talend Runtime

Hi
I am trying to deploy my REST services in talend run time 5.3.1.
If I set my endpoint as "http://localhost:8088/REST/getTerminalGroup", the services only able to access at the host itself.
The endpoint only accessible from client if I replaced the localhost with host IP. 
May I know is it anyway to make the job to read the IP portion from a config file and set as REST endpoint?
Was trying to read from properties file but end up run time start as:
19:27:48,687 | INFO  | ontainer1/deploy | g.apache.cxf.endpoint.ServerImpl   94 | 121 - org.apache.cxf.cxf-api - 2.7.5 | Setting the server's publish address to be System.getProperty("RESTProtocol") + "://" + System.getProperty("RESTHost") + System.getProperty("RESTPort") + "/REST/getTerminal
instead of the value of the properties.
 


Accepted Solutions
Highlighted
Ten Stars

Re: [resolved] How to make Rest Endpoint configurable in Talend Runtime

Make the Enpoint relative and only specify "/REST/getTerminalGroup" instead of "http://localhost:8088/REST/getTerminanGroup". When you deploy the service it will pick up of the ip address of the runtime you run it in.

View solution in original post


All Replies
Highlighted
Ten Stars

Re: [resolved] How to make Rest Endpoint configurable in Talend Runtime

Make the Enpoint relative and only specify "/REST/getTerminalGroup" instead of "http://localhost:8088/REST/getTerminanGroup". When you deploy the service it will pick up of the ip address of the runtime you run it in.

View solution in original post

Highlighted
One Star

Re: [resolved] How to make Rest Endpoint configurable in Talend Runtime

Many Thanks rhall Smiley Happy

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