[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
Six 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
Six 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

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads