Talend ESB Runtime - Ubuntu - REST service - No External Access

One Star

Talend ESB Runtime - Ubuntu - REST service - No External Access

Hi,
This is my first attempt at creating and deploying a Restful service using Talend ESB. I've run into some trouble at the deployment phase. I am able to access the service using localhost:8081 and using the local IP address with port 8081 on the deployment server but can't access it using the external IP address.
I created the job in Talend Open Studio 5.4.1. The job worked fine when run in Open Studio. The REST Endpoint was set to: "http://0.0.0.0:8081/".
I built the job as an OSGI bundle for ESB.
On a dedicated Ubuntu 12.04 Server, I installed the ESB Runtime as a service. I put the .jar for the REST service in the Runtime_ESBSE/container/deploy directory on this server.
After doing so, from the Ubuntu command line on the server I'm able to use the REST service using for eg. "curl localhost:8081/weather/Victoria/Melbourne", but get no response when I use the external IP address.
Port 8081 has been opened to this server in the firewall.
When I run "netstat -tupa" I see no reference to port 8081:
sudo netstat -tupa
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:32000 *:* LISTEN 781/java
tcp 0 0 localhost:mysql *:* LISTEN 787/mysqld
tcp 0 0 *:ssh *:* LISTEN 614/sshd
tcp 4 0 localhost:32000 localhost:31000 ESTABLISHED 779/karaf-wrapper
tcp 0 464 ip-10-249-69-32.ap-:ssh 220-245-229-154.s:50522 ESTABLISHED 1032/sshd: ubuntu :1527 :* LISTEN 781/java
tcp6 0 0 localhost:57719 :* LISTEN 781/java
tcp6 0 0 :44444 :* LISTEN 781/java
tcp6 0 0 :2181 :* LISTEN 781/java
tcp6 0 0 :8101 :* LISTEN 781/java
tcp6 0 0 :8040 :* LISTEN 781/java
tcp6 0 0 :9001 :* LISTEN 781/java
tcp6 0 0 :53129 :* LISTEN 781/java
tcp6 0 0 :rmiregistry :* LISTEN 781/java
tcp6 0 0 :tproxy :* LISTEN 781/java
tcp6 0 0 :ssh :* LISTEN 614/sshd
tcp6 0 0 localhost:60577 localhost:1527 ESTABLISHED 781/java
tcp6 0 0 localhost:31000 localhost:32000 ESTABLISHED 781/java
tcp6 0 0 localhost:1527 localhost:60577 ESTABLISHED 781/java
tcp6 0 0 localhost:1527 localhost:60578 ESTABLISHED 781/java
tcp6 0 0 localhost:60578 localhost:1527 ESTABLISHED 781/java
udp 0 0 *:bootpc *:* 468/dhclient3
Can anyone give me any clues as to what is happening here and why I can't access this service on Port 8081 from the external IP?
Thanks very much in advance!
Nathan
One Star

Re: Talend ESB Runtime - Ubuntu - REST service - No External Access

From my reading it seems that the way I was trying to set it up isn't really possible. So I used Apache web server with mod_proxy instead to forward port 80 to port 8081 on localhost.
It's a bit clunky but it works.

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up 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