diff --git a/src/main/java/org/jboss/netty/example/http/tunnel/LocalEchoServerRegistration.java b/src/main/java/org/jboss/netty/example/http/tunnel/LocalEchoServerRegistration.java index 235122d9cf..e75eb3d7a7 100644 --- a/src/main/java/org/jboss/netty/example/http/tunnel/LocalEchoServerRegistration.java +++ b/src/main/java/org/jboss/netty/example/http/tunnel/LocalEchoServerRegistration.java @@ -50,6 +50,8 @@ public class LocalEchoServerRegistration { ServerBootstrap serverBootstrap = new ServerBootstrap(factory); EchoHandler handler = new EchoHandler(); serverBootstrap.getPipeline().addLast("handler", handler); + + // Note that "myLocalServer" is the endpoint which was specified in web.xml. serverChannel = serverBootstrap.bind(new LocalAddress("myLocalServer")); }