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;
}