441442443444445446447448449450451
handlers.add(new HornetQFrameDecoder2()); handlers.add(new HornetQClientChannelHandler(channelGroup, handler, new Listener())); ChannelPipeline pipeline = new StaticChannelPipeline(handlers.toArray(new ChannelHandler[handlers.size()])); return pipeline; } });