env.put(Context.INITIAL_CONTEXT_FACTORY, clusterViewManager.getInitialContextFactoryName(protocol)); env.put(Context.PROVIDER_URL, serverRef.getProviderURL()); Context chosenContext = new InitialContext(env);
env.put(Context.INITIAL_CONTEXT_FACTORY, clusterViewManager.getInitialContextFactoryName(protocol)); } catch (ProtocolNotFoundException e) { LOGGER.error("Cannot get a class name for the initial context factory", e);