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

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
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.

All Replies
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.
One Star

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

Many Thanks rhall Smiley Happy

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch