@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { if (byteDecoder == null) { byteDecoder = new PrefaceDecoder(ctx); } byteDecoder.channelActive(ctx); super.channelActive(ctx); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { super.channelActive(ctx); connection = ProtonServerConnectionContextFactory.getFactory() .createConnection( new MinimalConnectionSPI(ctx.channel()), Executors.newSingleThreadExecutor(ActiveMQThreadFactory.defaultThreadFactory()), null); // ctx.read(); }