You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Tereza Nedelescu <tn...@tagged.com> on 2011/08/12 02:47:29 UTC

netty component: How can I make Netty listen to all the hosts ?

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-tp4691636p4691636.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: netty component: How can I make Netty listen to all the hosts ?

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Aug 12, 2011 at 2:47 AM, Tereza Nedelescu <tn...@tagged.com> 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
>

    <camel:from uri="netty:tcp://0.0.0.0:8983"/>

> 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-tp4691636p4691636.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/