handlers.add(new HornetQFrameDecoder(decoder));
}
handlers.add(new HornetQServerChannelHandler(channelGroup, handler, new Listener()));
ChannelPipeline pipeline = new StaticChannelPipeline(handlers.toArray(new ChannelHandler[handlers.size()]));
return pipeline;
}
};
bootstrap.setPipelineFactory(factory);