private static JChannel createSharedChannel(String singleton_name) throws ChannelException {
ProtocolStackConfigurator config=ConfiguratorFactory.getStackConfigurator(CHANNEL_CONFIG);
ProtocolData[] protocols=config.getProtocolStack();
ProtocolData transport=protocols[0];
transport.getParameters().put(Global.SINGLETON_NAME, new ProtocolParameter(Global.SINGLETON_NAME, singleton_name));
return new JChannel(config);
}