Using the address "0.0.0.0" like this can do the job.
<camel:route>
   <camel:from uri="netty:tcp://0.0.0.0:8983"/>
   <camel:to uri="stream:out" />
</camel:route>
On 8/12/11 8:52 AM, Tereza Nedelescu wrote:
Hi,

I'm trying to bind netty to all the hosts. How can I do that ?
Using the netcat format, I see   TCP *:port#.
I tried using the same format in Camel, but it didn't work. See below:

                 <camel:route>
                         <camel:from uri="netty:tcp://*:8983"/>
                         <camel:to uri="stream:out" />
                 </camel:route>

Error: org.apache.camel.RuntimeCamelException:
java.lang.IllegalArgumentException: port out of range: -1

Thanks,
Tereza

--
View this message in context: 
http://camel.465427.n5.nabble.com/netty-component-How-can-I-make-Netty-listen-to-all-the-hosts-tp4691650p4691650.html
Sent from the Camel - Users mailing list archive at Nabble.com.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to