Hi, This test reproduces the exception. The System.in.read() at the end is just to wait for the exception to appear. Any ideas?
Thanks. package camel.test; import java.io.IOException; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.test.junit4.CamelTestSupport; import org.junit.Assert; import org.junit.Test; public class CamelNettyTest extends CamelTestSupport { @Override protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { @Override public void configure() throws Exception { from("direct:out").to( "netty:tcp://localhost:8080?requestTimeout=5000"); from("netty:tcp://localhost:8080") .to("log:nettyCase?showAll=true&multiline=true"); ; } }; } @Test public void test() throws IOException { String result = template.requestBody("direct:out", "hello", String.class); Assert.assertEquals("hello", result); System.in.read(); } } -- View this message in context: http://camel.465427.n5.nabble.com/Netty-and-requestTimeout-tp5738341p5738533.html Sent from the Camel - Users mailing list archive at Nabble.com.