[
https://issues.apache.org/jira/browse/STRATOS-689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14144948#comment-14144948
]
Akila commented on STRATOS-689:
-------------------------------
You can have the CEP bind to any interface by putting 0.0.0.0 as the hostname
is data-bridge configuration.
Following is a sample snippet of
<stratos_home>/repository/conf/data-bridge/data-bridge-config.xml which can be
used for this purpose.
<!-- Default configuration for thriftDataReceiver -->
<thriftDataReceiver>
<hostName>0.0.0.0</hostName>
<port>7611</port>
<securePort>7711</securePort>
</thriftDataReceiver>
> CEP binds to private interface so agents can't talk with public IP
> ------------------------------------------------------------------
>
> Key: STRATOS-689
> URL: https://issues.apache.org/jira/browse/STRATOS-689
> Project: Stratos
> Issue Type: Bug
> Reporter: Udara Liyanage
>
> sudo netstat -tulpn | grep 22084
> tcp6 0 0 :::58326 :::* LISTEN
> 22084/java
> tcp6 0 0 172.16.2.100:7611 :::* LISTEN
> 22084/java
> tcp6 0 0 172.16.2.100:7711 :::* LISTEN
> 22084/java
> tcp6 0 0 :::9443 :::* LISTEN
> 22084/java
> tcp6 0 0 :::9763 :::* LISTEN
> 22084/java
> tcp6 0 0 :::11111 :::* LISTEN
> 22084/java
> tcp6 0 0 :::9999 :::* LISTEN
> 22084/java
> udp6 0 0 :::51870 :::*
> 22084/java
> udp6 0 0 :::53407 :::*
> 22084/java
> CEP ports are binded to the private IP interface. So agents can not connect
> to the CEP using public IP
> Error from Agent side
> Error while connection to event receiver
> org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot
> borrow client for TCP,54.179.74.65:7611,TCP,54.179.74.65:7711
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58)
> at
> org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273)
> at
> org.wso2.carbon.databridge.agent.thrift.DataPublisher.<init>(DataPublisher.java:161)
> at
> org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)