I am extending the BaseNettyTest. I forked the git repo and checked out the
2.13.2 tag

public class NettyCustomLocalPortProducerTest extends BaseNettyTest {

    @Test
    public void routeFails() throws Exception{
        template.sendBody("direct:testEndpoint", "Hello world");
    }

    protected RouteBuilder createRouteBuilder() {
        return new RouteBuilder() {
            public void configure() {

                from("direct:testEndPoint").to("netty:tcp://
www.google.com:80");

            }
        };
    }
}

Hopefully once I will be able to run this I can contribute myself with the
fix to use a different port :))

Best




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Netty-component-bind-failure-tp5755683p5755751.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to