Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[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.
 
0683p000009MCdB.png
0683p000009MCXy.png 0683p000009MCXd.png
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

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

2 Replies
Anonymous
Not applicable
Author

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.
Anonymous
Not applicable
Author

Many Thanks rhall 0683p000009MACn.png