pipeline.addLast("outputStream", new OutputStreamEncoder());
pipeline.addLast("callDecoder", new PullInputStreamConsumer(new HessianRPCCallDecoder(_serializerFactory), _executor ));
pipeline.addLast("replyEncoder", new HessianRPCReplyEncoder(_serializerFactory));
pipeline.addLast("outputProducer", new OutputProducer(_executor));
//pipeline.addLast("logger3",new OutLogger("3"));
HessianRPCServiceHandler factory = new HessianRPCServiceHandler(_executor);
ArrayList servers = MBeanServerFactory.findMBeanServer(null);
MBeanServer server = null;
if (servers != null && servers.size() > 0)
server = (MBeanServer) servers.get(0);
if (server == null)
server = MBeanServerFactory.createMBeanServer();
//factory.addService("default", new ContinuationService(new ContinuationHalloWorldService(), HelloWorldServiceInterface.class, factory, _executor));
factory.addService("default", new ImmediateInvokeService(server, MBeanServerConnection.class, factory));
pipeline.addLast("hessianRPCServer", factory);
//bootstrap.getPipeline().addLast("logger4",new OutLogger("4"));
return pipeline;
}