Hi,

Do you mean the ip address 142.2.15.148 isn't the machine which you deploy camel router? If so, you can't do it, you need deploy the camel router to that remote machine anyway.

Freeman
On 2011-8-18, at 下午4:57, samdai wrote:

Current I want to listen to a port in remote machine using mina or netty component, I have tried netty and mina, but can't work, Does camel has some
components can help to do it?


The following is the spring XML:
       <from
uri="netty:tcp://142.2.15.148:4031?decoders=#length-decoder,#string- decoder&amp;sync=false"/>
       <to uri="mock:multiple-codec"/>

The following is the error message, 142.2.15.148 is an IP address of remote
server

An internal error occurred. Please contact support.
An internal error occurred. Please contact support.
org.jboss.netty.channel.ChannelException: Failed to bind to:
/142.2.15.148:4031 [RuntimeCamelException]
Failed to bind to: /142.2.15.148:4031 [ChannelException]
Cannot assign requested address [BindException]
sun.nio.ch.Net, line -2 of bind().
sun.nio.ch.ServerSocketChannelImpl, line 119 of bind().
sun.nio.ch.ServerSocketAdaptor, line 59 of bind().
org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink, line 148 of
bind().
org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink, line 100 of
handleServerSocket().
org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink, line 74 of
eventSunk().
org.jboss.netty.channel.Channels, line 468 of bind().


--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-listen-to-a-port-in-remote-machine-using-mina-or-netty-component-tp4711371p4711371.html
Sent from the Camel - Users mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ff...@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to